public class CompressedVSizeColumnarIntsSupplier extends Object implements WritableSupplier<ColumnarInts>
Modifier and Type | Field and Description |
---|---|
static byte |
VERSION |
Modifier and Type | Method and Description |
---|---|
static CompressedVSizeColumnarIntsSupplier |
fromByteBuffer(ByteBuffer buffer,
ByteOrder order) |
static CompressedVSizeColumnarIntsSupplier |
fromList(it.unimi.dsi.fastutil.ints.IntList list,
int maxValue,
int chunkFactor,
ByteOrder byteOrder,
CompressionStrategy compression,
Closer closer) |
ColumnarInts |
get() |
long |
getSerializedSize()
Returns the number of bytes, that this Serializer will write to the output _channel_ (not smoosher) on a
Serializer.writeTo(java.nio.channels.WritableByteChannel, io.druid.java.util.common.io.smoosh.FileSmoosher) call. |
static int |
maxIntsInBufferForBytes(int numBytes) |
static int |
maxIntsInBufferForValue(int maxValue) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public static final byte VERSION
public static int maxIntsInBufferForBytes(int numBytes)
public static int maxIntsInBufferForValue(int maxValue)
public ColumnarInts get()
get
in interface com.google.common.base.Supplier<ColumnarInts>
public long getSerializedSize() throws IOException
Serializer
Serializer.writeTo(java.nio.channels.WritableByteChannel, io.druid.java.util.common.io.smoosh.FileSmoosher)
call.getSerializedSize
in interface Serializer
IOException
public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
Serializer
writeTo
in interface Serializer
IOException
public static CompressedVSizeColumnarIntsSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order)
public static CompressedVSizeColumnarIntsSupplier fromList(it.unimi.dsi.fastutil.ints.IntList list, int maxValue, int chunkFactor, ByteOrder byteOrder, CompressionStrategy compression, Closer closer)
Copyright © 2011–2018. All rights reserved.