public class CompressedLongsSupplierSerializer extends Object
Constructor and Description |
---|
CompressedLongsSupplierSerializer(int sizePer,
GenericIndexedWriter<ResourceHolder<LongBuffer>> flattener,
CompressedObjectStrategy.CompressionStrategy compression) |
Modifier and Type | Method and Description |
---|---|
void |
add(long value) |
void |
close() |
void |
closeAndConsolidate(com.google.common.io.OutputSupplier<? extends OutputStream> consolidatedOut) |
static CompressedLongsSupplierSerializer |
create(IOPeon ioPeon,
String filenameBase,
ByteOrder order,
CompressedObjectStrategy.CompressionStrategy compression) |
long |
getSerializedSize() |
void |
open() |
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public CompressedLongsSupplierSerializer(int sizePer, GenericIndexedWriter<ResourceHolder<LongBuffer>> flattener, CompressedObjectStrategy.CompressionStrategy compression)
public static CompressedLongsSupplierSerializer create(IOPeon ioPeon, String filenameBase, ByteOrder order, CompressedObjectStrategy.CompressionStrategy compression) throws IOException
IOException
public void open() throws IOException
IOException
public int size()
public void add(long value) throws IOException
IOException
public void closeAndConsolidate(com.google.common.io.OutputSupplier<? extends OutputStream> consolidatedOut) throws IOException
IOException
public void close() throws IOException
IOException
public long getSerializedSize()
public void writeToChannel(WritableByteChannel channel) throws IOException
IOException
Copyright © 2011–2016. All rights reserved.