public class IntermediateLongSupplierSerializer extends Object implements LongSupplierSerializer
Constructor and Description |
---|
IntermediateLongSupplierSerializer(IOPeon ioPeon,
String filenameBase,
ByteOrder order,
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 IntermediateLongSupplierSerializer(IOPeon ioPeon, String filenameBase, ByteOrder order, CompressedObjectStrategy.CompressionStrategy compression)
public void open() throws IOException
open
in interface LongSupplierSerializer
IOException
public int size()
size
in interface LongSupplierSerializer
public void add(long value) throws IOException
add
in interface LongSupplierSerializer
IOException
public void closeAndConsolidate(com.google.common.io.ByteSink consolidatedOut) throws IOException
closeAndConsolidate
in interface LongSupplierSerializer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getSerializedSize()
getSerializedSize
in interface LongSupplierSerializer
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
writeToChannel
in interface LongSupplierSerializer
IOException
Copyright © 2011–2017. All rights reserved.