public class GenericIndexedWriter<T> extends Object implements Closeable
| Constructor and Description |
|---|
GenericIndexedWriter(IOPeon ioPeon,
String filenameBase,
ObjectStrategy<T> strategy) |
GenericIndexedWriter(IOPeon ioPeon,
String filenameBase,
ObjectStrategy<T> strategy,
int fileSizeLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.io.InputSupplier<InputStream> |
combineStreams()
Deprecated.
|
static String |
generateHeaderFileName(String fileNameBase) |
static String |
generateValueFileName(String fileNameBase,
int fileNum) |
long |
getSerializedSize() |
void |
open() |
void |
write(T objectToWrite) |
void |
writeToChannel(WritableByteChannel channel,
FileSmoosher smoosher) |
public GenericIndexedWriter(IOPeon ioPeon, String filenameBase, ObjectStrategy<T> strategy)
public GenericIndexedWriter(IOPeon ioPeon, String filenameBase, ObjectStrategy<T> strategy, int fileSizeLimit)
public void open()
throws IOException
IOExceptionpublic void write(T objectToWrite) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getSerializedSize()
@Deprecated public com.google.common.io.InputSupplier<InputStream> combineStreams()
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
IOExceptionCopyright © 2011–2017. All rights reserved.