Search in sources :

Example 1 with ComplexColumnPartSupplier

use of org.apache.druid.segment.serde.ComplexColumnPartSupplier 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 2 with ComplexColumnPartSupplier

use of org.apache.druid.segment.serde.ComplexColumnPartSupplier 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 3 with ComplexColumnPartSupplier

use of org.apache.druid.segment.serde.ComplexColumnPartSupplier 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 4 with ComplexColumnPartSupplier

use of org.apache.druid.segment.serde.ComplexColumnPartSupplier in project druid by druid-io.

the class DoublesSketchComplexMetricSerde method deserializeColumn.

@Override
public void deserializeColumn(final ByteBuffer buffer, final ColumnBuilder builder) {
    final GenericIndexed<DoublesSketch> column = GenericIndexed.read(buffer, STRATEGY, builder.getFileMapper());
    builder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), column));
}
Also used : DoublesSketch(org.apache.datasketches.quantiles.DoublesSketch) UpdateDoublesSketch(org.apache.datasketches.quantiles.UpdateDoublesSketch) ComplexColumnPartSupplier(org.apache.druid.segment.serde.ComplexColumnPartSupplier)

Example 5 with ComplexColumnPartSupplier

use of org.apache.druid.segment.serde.ComplexColumnPartSupplier in project druid by druid-io.

the class SketchMergeComplexMetricSerde method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer buffer, ColumnBuilder builder) {
    GenericIndexed<SketchHolder> ge = GenericIndexed.read(buffer, strategy, builder.getFileMapper());
    builder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), ge));
}
Also used : ComplexColumnPartSupplier(org.apache.druid.segment.serde.ComplexColumnPartSupplier)

Aggregations

ComplexColumnPartSupplier (org.apache.druid.segment.serde.ComplexColumnPartSupplier)10 GenericIndexed (org.apache.druid.segment.data.GenericIndexed)4 MergingDigest (com.tdunning.math.stats.MergingDigest)1 DoublesSketch (org.apache.datasketches.quantiles.DoublesSketch)1 UpdateDoublesSketch (org.apache.datasketches.quantiles.UpdateDoublesSketch)1 ArrayOfDoublesSketch (org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesSketch)1