Class HyperUniquesSerde
- java.lang.Object
-
- org.apache.druid.segment.serde.ComplexMetricSerde
-
- org.apache.druid.query.aggregation.hyperloglog.HyperUniquesSerde
-
- Direct Known Subclasses:
PreComputedHyperUniquesSerde
public class HyperUniquesSerde extends ComplexMetricSerde
-
-
Constructor Summary
Constructors Constructor Description HyperUniquesSerde()HyperUniquesSerde(HyperLogLogHash hyperLogLogHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserializeColumn(ByteBuffer byteBuffer, ColumnBuilder columnBuilder)ComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig)should be used instead of this.ComplexMetricExtractor<HyperLogLogCollector>getExtractor()ObjectStrategygetObjectStrategy()This is deprecated because its usage is going to be removed from the code.GenericColumnSerializergetSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column)This method provides the ability for a ComplexMetricSerde to control its own serialization.StringgetTypeName()-
Methods inherited from class org.apache.druid.segment.serde.ComplexMetricSerde
deserializeColumn, fromBytes, getTypeStrategy, inputSizeFn, toBytes
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HyperUniquesSerde
public HyperUniquesSerde()
-
HyperUniquesSerde
public HyperUniquesSerde(HyperLogLogHash hyperLogLogHash)
-
-
Method Detail
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein classComplexMetricSerde
-
getExtractor
public ComplexMetricExtractor<HyperLogLogCollector> getExtractor()
- Specified by:
getExtractorin classComplexMetricSerde
-
deserializeColumn
public void deserializeColumn(ByteBuffer byteBuffer, ColumnBuilder columnBuilder)
Description copied from class:ComplexMetricSerdeComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig)should be used instead of this. This method is left for backward compatibility.- Specified by:
deserializeColumnin classComplexMetricSerde
-
getObjectStrategy
public ObjectStrategy getObjectStrategy()
Description copied from class:ComplexMetricSerdeThis is deprecated because its usage is going to be removed from the code.It was introduced before deserializeColumn() existed. This method creates the assumption that Druid knows how to interpret the actual column representation of the data, but I would much prefer that the ComplexMetricSerde objects be in charge of creating and interpreting the whole column, which is what deserializeColumn lets them do.
- Specified by:
getObjectStrategyin classComplexMetricSerde- Returns:
- an ObjectStrategy as used by GenericIndexed
-
getSerializer
public GenericColumnSerializer getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column)
Description copied from class:ComplexMetricSerdeThis method provides the ability for a ComplexMetricSerde to control its own serialization. For large column (i.e columns greater thanInteger.MAX_VALUE) useLargeColumnSupportedComplexColumnSerializer- Overrides:
getSerializerin classComplexMetricSerde- Returns:
- an instance of GenericColumnSerializer used for serialization.
-
-