Class SerializablePairLongLongComplexMetricSerde
- java.lang.Object
-
- org.apache.druid.segment.serde.ComplexMetricSerde
-
- org.apache.druid.query.aggregation.AbstractSerializableLongObjectPairSerde<SerializablePairLongLong>
-
- org.apache.druid.query.aggregation.SerializablePairLongLongComplexMetricSerde
-
public class SerializablePairLongLongComplexMetricSerde extends AbstractSerializableLongObjectPairSerde<SerializablePairLongLong>
-
-
Field Summary
Fields Modifier and Type Field Description static intEXPECTED_VERSIONstatic StringTYPE_NAME
-
Constructor Summary
Constructors Constructor Description SerializablePairLongLongComplexMetricSerde()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserializeColumn(ByteBuffer buffer, ColumnBuilder columnBuilder)ComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig)should be used instead of this.ObjectStrategy<SerializablePairLongLong>getObjectStrategy()This is deprecated because its usage is going to be removed from the code.GenericColumnSerializer<SerializablePairLongLong>getSerializer(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.query.aggregation.AbstractSerializableLongObjectPairSerde
getExtractor
-
Methods inherited from class org.apache.druid.segment.serde.ComplexMetricSerde
deserializeColumn, fromBytes, getTypeStrategy, inputSizeFn, toBytes
-
-
-
-
Field Detail
-
EXPECTED_VERSION
public static final int EXPECTED_VERSION
- See Also:
- Constant Field Values
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein classComplexMetricSerde
-
getSerializer
public GenericColumnSerializer<SerializablePairLongLong> 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.
-
deserializeColumn
public void deserializeColumn(ByteBuffer buffer, 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<SerializablePairLongLong> 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
-
-