public class EndpointAggregators extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(org.apache.kylin.measure.MeasureAggregator[] measureAggrs,
byte[] row)
this method is heavily called at coprocessor side,
Make sure as little object creation as possible
|
org.apache.kylin.measure.MeasureAggregator[] |
createBuffer() |
static EndpointAggregators |
deserialize(byte[] bytes) |
List<Object> |
deserializeMetricValues(ByteBuffer buffer) |
static EndpointAggregators |
fromFunctions(TableRecordInfo tableInfo,
List<org.apache.kylin.metadata.model.FunctionDesc> metrics) |
int |
getMeasureSerializeLength() |
TableRecordInfoDigest |
getTableRecordInfoDigest() |
boolean |
isEmpty() |
static byte[] |
serialize(EndpointAggregators o) |
int |
serializeMetricValues(org.apache.kylin.measure.MeasureAggregator[] aggrs,
byte[] buffer,
int offset) |
public static EndpointAggregators fromFunctions(TableRecordInfo tableInfo, List<org.apache.kylin.metadata.model.FunctionDesc> metrics)
public TableRecordInfoDigest getTableRecordInfoDigest()
public boolean isEmpty()
public org.apache.kylin.measure.MeasureAggregator[] createBuffer()
public void aggregate(org.apache.kylin.measure.MeasureAggregator[] measureAggrs,
byte[] row)
public int serializeMetricValues(org.apache.kylin.measure.MeasureAggregator[] aggrs,
byte[] buffer,
int offset)
aggrs - buffer - byte buffer to get the metric datapublic List<Object> deserializeMetricValues(ByteBuffer buffer)
public static byte[] serialize(EndpointAggregators o)
public static EndpointAggregators deserialize(byte[] bytes)
public int getMeasureSerializeLength()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.