public class NestedDataComplexTypeSerde extends ComplexMetricSerde
| Modifier and Type | Field and Description |
|---|---|
static NestedDataComplexTypeSerde |
INSTANCE |
static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
static ColumnType |
TYPE |
static String |
TYPE_NAME |
| Constructor and Description |
|---|
NestedDataComplexTypeSerde() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeColumn(ByteBuffer buffer,
ColumnBuilder builder)
ComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig) should be used instead of this. |
void |
deserializeColumn(ByteBuffer buffer,
ColumnBuilder builder,
ColumnConfig columnConfig)
Deserializes a ByteBuffer and adds it to the ColumnBuilder.
|
ComplexMetricExtractor |
getExtractor() |
ObjectStrategy |
getObjectStrategy()
This is deprecated because its usage is going to be removed from the code.
|
String |
getTypeName() |
fromBytes, getSerializer, getTypeStrategy, inputSizeFn, toBytespublic static final String TYPE_NAME
public static final ColumnType TYPE
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
public static final NestedDataComplexTypeSerde INSTANCE
public String getTypeName()
getTypeName in class ComplexMetricSerdepublic ComplexMetricExtractor getExtractor()
getExtractor in class ComplexMetricSerdepublic void deserializeColumn(ByteBuffer buffer, ColumnBuilder builder)
ComplexMetricSerdeComplexMetricSerde.deserializeColumn(ByteBuffer, ColumnBuilder, ColumnConfig) should be used instead of this.
This method is left for backward compatibility.deserializeColumn in class ComplexMetricSerdepublic void deserializeColumn(ByteBuffer buffer, ColumnBuilder builder, ColumnConfig columnConfig)
ComplexMetricSerdedeserializeColumn in class ComplexMetricSerdebuffer - the buffer to deserializebuilder - ColumnBuilder to add the column tocolumnConfig - ColumnConfiguration used during deserializationpublic ObjectStrategy getObjectStrategy()
ComplexMetricSerdeIt 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.
getObjectStrategy in class ComplexMetricSerdeCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.