public class CompressedIntsIndexedSupplier extends Object implements WritableSupplier<IndexedInts>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_INTS_IN_BUFFER |
static byte |
version |
Modifier and Type | Method and Description |
---|---|
CompressedIntsIndexedSupplier |
convertByteOrder(ByteOrder order) |
static CompressedIntsIndexedSupplier |
fromByteBuffer(ByteBuffer buffer,
ByteOrder order) |
static CompressedIntsIndexedSupplier |
fromIntBuffer(IntBuffer buffer,
ByteOrder byteOrder,
CompressedObjectStrategy.CompressionStrategy compression) |
static CompressedIntsIndexedSupplier |
fromIntBuffer(IntBuffer buffer,
int chunkFactor,
ByteOrder byteOrder,
CompressedObjectStrategy.CompressionStrategy compression) |
static CompressedIntsIndexedSupplier |
fromList(List<Integer> list,
int chunkFactor,
ByteOrder byteOrder,
CompressedObjectStrategy.CompressionStrategy compression) |
IndexedInts |
get() |
long |
getSerializedSize() |
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public static final byte version
public static final int MAX_INTS_IN_BUFFER
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 CompressedIntsIndexedSupplier convertByteOrder(ByteOrder order)
public static CompressedIntsIndexedSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order)
public static CompressedIntsIndexedSupplier fromIntBuffer(IntBuffer buffer, ByteOrder byteOrder, CompressedObjectStrategy.CompressionStrategy compression)
public static CompressedIntsIndexedSupplier fromIntBuffer(IntBuffer buffer, int chunkFactor, ByteOrder byteOrder, CompressedObjectStrategy.CompressionStrategy compression)
public static CompressedIntsIndexedSupplier fromList(List<Integer> list, int chunkFactor, ByteOrder byteOrder, CompressedObjectStrategy.CompressionStrategy compression)
Copyright © 2011–2015. All rights reserved.