Search in sources :

Example 1 with GenericIndexed

use of org.apache.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.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : GenericIndexed(org.apache.druid.segment.data.GenericIndexed)

Example 2 with GenericIndexed

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

the class VarianceSerde method deserializeColumn.

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

Example 3 with GenericIndexed

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

the class SerializablePairLongStringSerde method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer buffer, ColumnBuilder columnBuilder) {
    final GenericIndexed column = GenericIndexed.read(buffer, getObjectStrategy(), columnBuilder.getFileMapper());
    columnBuilder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : GenericIndexed(org.apache.druid.segment.data.GenericIndexed) ComplexColumnPartSupplier(org.apache.druid.segment.serde.ComplexColumnPartSupplier)

Example 4 with GenericIndexed

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

the class HyperUniquesSerde method deserializeColumn.

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

Example 5 with GenericIndexed

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

the class FixedBucketsHistogramSerde method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer buffer, ColumnBuilder builder) {
    final GenericIndexed column = GenericIndexed.read(buffer, getObjectStrategy(), builder.getFileMapper());
    builder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : GenericIndexed(org.apache.druid.segment.data.GenericIndexed) ComplexColumnPartSupplier(org.apache.druid.segment.serde.ComplexColumnPartSupplier)

Aggregations

GenericIndexed (org.apache.druid.segment.data.GenericIndexed)6 ComplexColumnPartSupplier (org.apache.druid.segment.serde.ComplexColumnPartSupplier)4 Function (com.google.common.base.Function)1 Preconditions (com.google.common.base.Preconditions)1 FluentIterable (com.google.common.collect.FluentIterable)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 TimeUnit (java.util.concurrent.TimeUnit)1 BitmapFactory (org.apache.druid.collections.bitmap.BitmapFactory)1 ImmutableBitmap (org.apache.druid.collections.bitmap.ImmutableBitmap)1 MutableBitmap (org.apache.druid.collections.bitmap.MutableBitmap)1 RoaringBitmapFactory (org.apache.druid.collections.bitmap.RoaringBitmapFactory)1 NullHandling (org.apache.druid.common.config.NullHandling)1 ConciseSetUtils (org.apache.druid.extendedset.intset.ConciseSetUtils)1 BitmapIndexSelector (org.apache.druid.query.filter.BitmapIndexSelector)1 BoundDimFilter (org.apache.druid.query.filter.BoundDimFilter)1 StringComparators (org.apache.druid.query.ordering.StringComparators)1 BitmapIndex (org.apache.druid.segment.column.BitmapIndex)1 BitmapSerdeFactory (org.apache.druid.segment.data.BitmapSerdeFactory)1 RoaringBitmapSerdeFactory (org.apache.druid.segment.data.RoaringBitmapSerdeFactory)1