Package org.apache.druid.segment.nested
Class NestedDataComplexTypeSerde
java.lang.Object
org.apache.druid.segment.serde.ComplexMetricSerde
org.apache.druid.segment.nested.NestedDataComplexTypeSerde
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserializeColumn(ByteBuffer buffer, ColumnBuilder builder) ComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig)should be used instead of this.voiddeserializeColumn(ByteBuffer buffer, ColumnBuilder builder, ColumnConfig columnConfig) Deserializes a ByteBuffer and adds it to the ColumnBuilder.This is deprecated because its usage is going to be removed from the code.Get aTypeStrategyto assist with writing individual complex values to aByteBuffer.byte[]Converts intermediate representation of aggregate to byte[].Methods inherited from class org.apache.druid.segment.serde.ComplexMetricSerde
fromBytes, getSerializer, getSerializer, inputSizeFn
-
Field Details
-
TYPE_NAME
- See Also:
-
INSTANCE
-
-
Constructor Details
-
NestedDataComplexTypeSerde
public NestedDataComplexTypeSerde()
-
-
Method Details
-
getTypeName
- Specified by:
getTypeNamein classComplexMetricSerde
-
getExtractor
- Specified by:
getExtractorin classComplexMetricSerde
-
deserializeColumn
Description copied from class:ComplexMetricSerdeComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig)should be used instead of this. This method is left for backward compatibility.- Overrides:
deserializeColumnin classComplexMetricSerde
-
deserializeColumn
Description copied from class:ComplexMetricSerdeDeserializes a ByteBuffer and adds it to the ColumnBuilder. This method allows for the ComplexMetricSerde to implement it's own versioning scheme to allow for changes of binary format in a forward-compatible manner.- Overrides:
deserializeColumnin classComplexMetricSerde- Parameters:
buffer- the buffer to deserializebuilder- ColumnBuilder to add the column tocolumnConfig- ColumnConfiguration used during deserialization
-
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
-
getTypeStrategy
Description copied from class:ComplexMetricSerdeGet aTypeStrategyto assist with writing individual complex values to aByteBuffer.- Overrides:
getTypeStrategyin classComplexMetricSerde- See Also:
-
toBytes
Description copied from class:ComplexMetricSerdeConverts intermediate representation of aggregate to byte[].- Overrides:
toBytesin classComplexMetricSerde- Parameters:
val- intermediate representation of aggregate- Returns:
- serialized intermediate representation of aggregate in byte[]
-