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
IOException
public void write(T objectToWrite) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getSerializedSize()
@Deprecated public com.google.common.io.InputSupplier<InputStream> combineStreams()
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
IOException
Copyright © 2011–2017. All rights reserved.