Search in sources :

Example 1 with CompressedFloatsIndexedSupplier

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

the class FloatGenericColumnPartSerde method getDeserializer.

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

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

Aggregations

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