Search in sources :

Example 1 with CompressedLongsIndexedSupplier

use of io.druid.segment.data.CompressedLongsIndexedSupplier in project druid by druid-io.

the class LongGenericColumnPartSerde method getDeserializer.

@Override
public Deserializer getDeserializer() {
    return new Deserializer() {

        @Override
        public void read(ByteBuffer buffer, ColumnBuilder builder, ColumnConfig columnConfig) {
            final CompressedLongsIndexedSupplier column = CompressedLongsIndexedSupplier.fromByteBuffer(buffer, byteOrder, builder.getFileMapper());
            builder.setType(ValueType.LONG).setHasMultipleValues(false).setGenericColumn(new LongGenericColumnSupplier(column));
        }
    };
}
Also used : ColumnConfig(io.druid.segment.column.ColumnConfig) ColumnBuilder(io.druid.segment.column.ColumnBuilder) CompressedLongsIndexedSupplier(io.druid.segment.data.CompressedLongsIndexedSupplier) ByteBuffer(java.nio.ByteBuffer)

Aggregations

ColumnBuilder (io.druid.segment.column.ColumnBuilder)1 ColumnConfig (io.druid.segment.column.ColumnConfig)1 CompressedLongsIndexedSupplier (io.druid.segment.data.CompressedLongsIndexedSupplier)1 ByteBuffer (java.nio.ByteBuffer)1