public class CompressedVSizeColumnarMultiIntsSupplier extends Object implements WritableSupplier<ColumnarMultiInts>
ColumnarInts
of length num of rows + 1 representing offsets of starting index of first element of
each row in values index and last element equal to length of values column, the last element in the offsets
represents the total length of values column.
values - ColumnarInts
representing concatenated values of all rowsModifier and Type | Class and Description |
---|---|
static class |
CompressedVSizeColumnarMultiIntsSupplier.CompressedVSizeColumnarMultiInts |
Modifier and Type | Method and Description |
---|---|
static CompressedVSizeColumnarMultiIntsSupplier |
fromByteBuffer(ByteBuffer buffer,
ByteOrder order) |
static CompressedVSizeColumnarMultiIntsSupplier |
fromIterable(Iterable<IndexedInts> objectsIterable,
int maxValue,
ByteOrder byteOrder,
CompressionStrategy compression,
Closer closer) |
ColumnarMultiInts |
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. |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
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 CompressedVSizeColumnarMultiIntsSupplier fromByteBuffer(ByteBuffer buffer, ByteOrder order)
public static CompressedVSizeColumnarMultiIntsSupplier fromIterable(Iterable<IndexedInts> objectsIterable, int maxValue, ByteOrder byteOrder, CompressionStrategy compression, Closer closer)
public ColumnarMultiInts get()
get
in interface com.google.common.base.Supplier<ColumnarMultiInts>
Copyright © 2011–2018. All rights reserved.