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