public abstract class ComplexMetricSerde extends Object
Constructor and Description |
---|
ComplexMetricSerde() |
Modifier and Type | Method and Description |
---|---|
abstract ColumnPartSerde |
deserializeColumn(ByteBuffer buffer,
ColumnBuilder builder)
Deserializes a ByteBuffer and adds it to the ColumnBuilder.
|
Object |
fromBytes(byte[] data,
int start,
int numBytes)
Converts byte[] to intermediate representation of the aggregate.
|
abstract ComplexMetricExtractor |
getExtractor() |
abstract ObjectStrategy |
getObjectStrategy()
Deprecated.
|
abstract String |
getTypeName() |
com.google.common.base.Function<Object,Long> |
inputSizeFn()
Returns a function that can convert the Object provided by the ComplexColumn created through deserializeColumn
into a number of expected input bytes to produce that object.
|
byte[] |
toBytes(Object val)
Converts intermediate representation of aggregate to byte[].
|
public abstract String getTypeName()
public abstract ComplexMetricExtractor getExtractor()
public abstract ColumnPartSerde deserializeColumn(ByteBuffer buffer, ColumnBuilder builder)
buffer
- the buffer to deserializebuilder
- ColumnBuilder to add the column to@Deprecated public abstract ObjectStrategy getObjectStrategy()
public com.google.common.base.Function<Object,Long> inputSizeFn()
public byte[] toBytes(Object val)
val
- intermediate representation of aggregatepublic Object fromBytes(byte[] data, int start, int numBytes)
byte
- arraystart
- offset in the byte array where to start readingnumBytes
- number of bytes to read in given arrayCopyright © 2011–2015. All rights reserved.