public class CompressedVSizeIntsIndexedSupplier extends Object implements WritableSupplier<IndexedInts>
Modifier and Type | Field and Description |
---|---|
static byte |
version |
Modifier and Type | Method and Description |
---|---|
static CompressedVSizeIntsIndexedSupplier |
fromByteBuffer(ByteBuffer buffer,
ByteOrder order) |
static CompressedVSizeIntsIndexedSupplier |
fromList(List<Integer> list,
int maxValue,
int chunkFactor,
ByteOrder byteOrder,
CompressedObjectStrategy.CompressionStrategy compression) |
IndexedInts |
get() |
long |
getSerializedSize() |
static int |
maxIntsInBufferForBytes(int numBytes) |
static int |
maxIntsInBufferForValue(int maxValue) |
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public static final byte version
public static int maxIntsInBufferForBytes(int numBytes)
public static int maxIntsInBufferForValue(int maxValue)
public int size()
public IndexedInts get()
get
in interface com.google.common.base.Supplier<IndexedInts>
public long getSerializedSize()
getSerializedSize
in interface WritableSupplier<IndexedInts>
public void writeToChannel(WritableByteChannel channel) throws IOException
writeToChannel
in interface WritableSupplier<IndexedInts>
IOException
public static CompressedVSizeIntsIndexedSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order)
public static CompressedVSizeIntsIndexedSupplier fromList(List<Integer> list, int maxValue, int chunkFactor, ByteOrder byteOrder, CompressedObjectStrategy.CompressionStrategy compression)
Copyright © 2011–2015. All rights reserved.