public class InMemoryCompressedFloats extends Object implements IndexedFloats
| Modifier and Type | Field and Description |
|---|---|
static CompressedObjectStrategy.CompressionStrategy |
COMPRESSION |
| Constructor and Description |
|---|
InMemoryCompressedFloats(int sizePer,
ByteOrder order) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(float value) |
int |
addAll(Iterable<Float> values) |
void |
close() |
void |
fill(int index,
float[] toFill) |
float |
get(int index) |
int |
size() |
CompressedFloatsIndexedSupplier |
toCompressedFloatsIndexedSupplier() |
public static final CompressedObjectStrategy.CompressionStrategy COMPRESSION
public InMemoryCompressedFloats(int sizePer,
ByteOrder order)
public int size()
size in interface IndexedFloatspublic int add(float value)
public float get(int index)
get in interface IndexedFloatspublic void fill(int index,
float[] toFill)
fill in interface IndexedFloatspublic CompressedFloatsIndexedSupplier toCompressedFloatsIndexedSupplier()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015. All rights reserved.