public class BlockLayoutDoubleSupplierSerializer extends Object implements DoubleSupplierSerializer
| Constructor and Description |
|---|
BlockLayoutDoubleSupplierSerializer(IOPeon ioPeon,
String filenameBase,
ByteOrder order,
CompressedObjectStrategy.CompressionStrategy compression) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double value) |
void |
close() |
void |
closeAndConsolidate(com.google.common.io.ByteSink consolidatedOut) |
long |
getSerializedSize() |
void |
open() |
int |
size() |
void |
writeToChannel(WritableByteChannel channel,
io.druid.java.util.common.io.smoosh.FileSmoosher smoosher) |
public BlockLayoutDoubleSupplierSerializer(IOPeon ioPeon, String filenameBase, ByteOrder order, CompressedObjectStrategy.CompressionStrategy compression)
public void open()
throws IOException
open in interface DoubleSupplierSerializerIOExceptionpublic int size()
size in interface DoubleSupplierSerializerpublic void add(double value)
throws IOException
add in interface DoubleSupplierSerializerIOExceptionpublic void closeAndConsolidate(com.google.common.io.ByteSink consolidatedOut)
throws IOException
closeAndConsolidate in interface DoubleSupplierSerializerIOExceptionpublic long getSerializedSize()
getSerializedSize in interface DoubleSupplierSerializerpublic void writeToChannel(WritableByteChannel channel, io.druid.java.util.common.io.smoosh.FileSmoosher smoosher) throws IOException
writeToChannel in interface DoubleSupplierSerializerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2017. All rights reserved.