Search in sources :

Example 6 with GenericIndexed

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

the class HyperUniquesSerdeForTest method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer byteBuffer, ColumnBuilder columnBuilder) {
    final GenericIndexed column;
    if (columnBuilder.getFileMapper() == null) {
        column = GenericIndexed.read(byteBuffer, getObjectStrategy());
    } else {
        column = GenericIndexed.read(byteBuffer, getObjectStrategy(), columnBuilder.getFileMapper());
    }
    columnBuilder.setComplexColumn(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : GenericIndexed(io.druid.segment.data.GenericIndexed)

Example 7 with GenericIndexed

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

the class ApproximateHistogramFoldingSerde method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer byteBuffer, ColumnBuilder columnBuilder) {
    final GenericIndexed column = GenericIndexed.read(byteBuffer, getObjectStrategy());
    columnBuilder.setComplexColumn(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : GenericIndexed(io.druid.segment.data.GenericIndexed) ComplexColumnPartSupplier(io.druid.segment.serde.ComplexColumnPartSupplier)

Aggregations

GenericIndexed (io.druid.segment.data.GenericIndexed)7 Function (com.google.common.base.Function)3 BitmapFactory (io.druid.collections.bitmap.BitmapFactory)3 ImmutableBitmap (io.druid.collections.bitmap.ImmutableBitmap)3 MutableBitmap (io.druid.collections.bitmap.MutableBitmap)3 RoaringBitmapFactory (io.druid.collections.bitmap.RoaringBitmapFactory)3 ImmutableRTree (io.druid.collections.spatial.ImmutableRTree)3 BitmapIndexSelector (io.druid.query.filter.BitmapIndexSelector)3 BitmapIndex (io.druid.segment.column.BitmapIndex)3 BitmapSerdeFactory (io.druid.segment.data.BitmapSerdeFactory)3 Indexed (io.druid.segment.data.Indexed)3 RoaringBitmapSerdeFactory (io.druid.segment.data.RoaringBitmapSerdeFactory)3 BitmapIndexColumnPartSupplier (io.druid.segment.serde.BitmapIndexColumnPartSupplier)3 ComplexColumnPartSupplier (io.druid.segment.serde.ComplexColumnPartSupplier)3 Setup (org.openjdk.jmh.annotations.Setup)3