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,
io.druid.java.util.common.io.smoosh.SmooshedFileMapper fileMapper) |
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>IOExceptionpublic CompressedIntsIndexedSupplier convertByteOrder(ByteOrder order)
public static CompressedIntsIndexedSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order, io.druid.java.util.common.io.smoosh.SmooshedFileMapper fileMapper)
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–2017. All rights reserved.