public class CompressedFloatsIndexedSupplier extends Object implements com.google.common.base.Supplier<IndexedFloats>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_FLOATS_IN_BUFFER |
static byte |
version |
Modifier and Type | Method and Description |
---|---|
CompressedFloatsIndexedSupplier |
convertByteOrder(ByteOrder order) |
static CompressedFloatsIndexedSupplier |
fromByteBuffer(ByteBuffer buffer,
ByteOrder order) |
static CompressedFloatsIndexedSupplier |
fromFloatBuffer(FloatBuffer buffer,
ByteOrder order) |
static CompressedFloatsIndexedSupplier |
fromFloatBuffer(FloatBuffer buffer,
int chunkFactor,
ByteOrder order) |
IndexedFloats |
get() |
long |
getSerializedSize() |
static int |
numFloatsInBuffer(int numFloatsInChunk) |
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public static final byte version
public static final int MAX_FLOATS_IN_BUFFER
public int size()
public IndexedFloats get()
get
in interface com.google.common.base.Supplier<IndexedFloats>
public long getSerializedSize()
public void writeToChannel(WritableByteChannel channel) throws IOException
IOException
public CompressedFloatsIndexedSupplier convertByteOrder(ByteOrder order)
public static int numFloatsInBuffer(int numFloatsInChunk)
public static CompressedFloatsIndexedSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order)
public static CompressedFloatsIndexedSupplier fromFloatBuffer(FloatBuffer buffer, ByteOrder order)
public static CompressedFloatsIndexedSupplier fromFloatBuffer(FloatBuffer buffer, int chunkFactor, ByteOrder order)
Copyright © 2015. All rights reserved.