public class BlockLayoutLongSupplierSerializer extends Object implements LongSupplierSerializer
| Constructor and Description |
|---|
BlockLayoutLongSupplierSerializer(IOPeon ioPeon,
String filenameBase,
ByteOrder order,
CompressionFactory.LongEncodingWriter writer,
CompressedObjectStrategy.CompressionStrategy compression) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value) |
void |
close() |
void |
closeAndConsolidate(com.google.common.io.ByteSink consolidatedOut) |
long |
getSerializedSize() |
void |
open() |
int |
size() |
void |
writeToChannel(WritableByteChannel channel,
FileSmoosher smoosher) |
public BlockLayoutLongSupplierSerializer(IOPeon ioPeon, String filenameBase, ByteOrder order, CompressionFactory.LongEncodingWriter writer, CompressedObjectStrategy.CompressionStrategy compression)
public void open()
throws IOException
open in interface LongSupplierSerializerIOExceptionpublic int size()
size in interface LongSupplierSerializerpublic void add(long value)
throws IOException
add in interface LongSupplierSerializerIOExceptionpublic void closeAndConsolidate(com.google.common.io.ByteSink consolidatedOut)
throws IOException
closeAndConsolidate in interface LongSupplierSerializerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getSerializedSize()
getSerializedSize in interface LongSupplierSerializerpublic void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
writeToChannel in interface LongSupplierSerializerIOExceptionCopyright © 2011–2017. All rights reserved.