public class VarianceSerde extends ComplexMetricSerde
Constructor and Description |
---|
VarianceSerde() |
Modifier and Type | Method and Description |
---|---|
void |
deserializeColumn(ByteBuffer byteBuffer,
ColumnBuilder columnBuilder)
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.
|
GenericColumnSerializer |
getSerializer(IOPeon peon,
String column)
This method provides the ability for a ComplexMetricSerde to control its own serialization.
|
String |
getTypeName() |
fromBytes, inputSizeFn, toBytes
public String getTypeName()
getTypeName
in class ComplexMetricSerde
public ComplexMetricExtractor getExtractor()
getExtractor
in class ComplexMetricSerde
public void deserializeColumn(ByteBuffer byteBuffer, ColumnBuilder columnBuilder)
ComplexMetricSerde
deserializeColumn
in class ComplexMetricSerde
byteBuffer
- the buffer to deserializecolumnBuilder
- ColumnBuilder to add the column topublic ObjectStrategy getObjectStrategy()
ComplexMetricSerde
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.
getObjectStrategy
in class ComplexMetricSerde
public GenericColumnSerializer getSerializer(IOPeon peon, String column)
ComplexMetricSerde
getSerializer
in class ComplexMetricSerde
peon
- IOPeoncolumn
- name of the columnCopyright © 2011–2017. All rights reserved.