Search in sources :

Example 6 with ComplexColumnPartSupplier

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

the class ArrayOfDoublesSketchMergeComplexMetricSerde method deserializeColumn.

@Override
public void deserializeColumn(final ByteBuffer buffer, final ColumnBuilder builder) {
    final GenericIndexed<ArrayOfDoublesSketch> ge = GenericIndexed.read(buffer, ArrayOfDoublesSketchObjectStrategy.STRATEGY);
    builder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), ge));
}
Also used : ArrayOfDoublesSketch(org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesSketch) ComplexColumnPartSupplier(org.apache.druid.segment.serde.ComplexColumnPartSupplier)

Example 7 with ComplexColumnPartSupplier

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

the class ApproximateHistogramFoldingSerde method deserializeColumn.

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

Example 8 with ComplexColumnPartSupplier

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

Example 9 with ComplexColumnPartSupplier

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

the class TDigestSketchComplexMetricSerde method deserializeColumn.

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

Example 10 with ComplexColumnPartSupplier

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

the class MomentSketchComplexMetricSerde method deserializeColumn.

@Override
public void deserializeColumn(ByteBuffer buffer, ColumnBuilder builder) {
    final GenericIndexed<MomentSketchWrapper> column = GenericIndexed.read(buffer, STRATEGY, builder.getFileMapper());
    builder.setComplexColumnSupplier(new ComplexColumnPartSupplier(getTypeName(), column));
}
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