public abstract class SimpleFloatAggregatorFactory extends AggregatorFactory
| Modifier and Type | Field and Description |
|---|---|
protected String |
expression |
protected String |
fieldName |
protected ExprMacroTable |
macroTable |
protected String |
name |
| Constructor and Description |
|---|
SimpleFloatAggregatorFactory(ExprMacroTable macroTable,
String name,
String fieldName,
String expression) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(Object object)
A method that knows how to "deserialize" the object from whatever form it might have been put into
in order to transfer via JSON.
|
boolean |
equals(Object o) |
Object |
finalizeComputation(Object object)
"Finalizes" the computation of an object.
|
Comparator |
getComparator() |
protected FloatColumnSelector |
getFloatColumnSelector(ColumnSelectorFactory metricFactory,
Float nullValue) |
int |
getMaxIntermediateSize()
Returns the maximum size that this aggregator will require in bytes for intermediate storage of results.
|
AggregatorFactory |
getMergingFactory(AggregatorFactory other)
Returns an AggregatorFactory that can be used to merge the output of aggregators from this factory and
other factory.
|
String |
getTypeName() |
int |
hashCode() |
List<String> |
requiredFields() |
combine, factorize, factorizeBuffered, getCombiningFactory, getName, getRequiredColumns, makeAggregateCombiner, mergeAggregatorsprotected final String name
protected final String fieldName
protected final String expression
protected final ExprMacroTable macroTable
public SimpleFloatAggregatorFactory(ExprMacroTable macroTable, String name, String fieldName, String expression)
protected FloatColumnSelector getFloatColumnSelector(ColumnSelectorFactory metricFactory, Float nullValue)
public Object deserialize(Object object)
AggregatorFactorydeserialize in class AggregatorFactoryobject - the object to deserializepublic String getTypeName()
getTypeName in class AggregatorFactorypublic int getMaxIntermediateSize()
AggregatorFactorygetMaxIntermediateSize in class AggregatorFactorypublic Comparator getComparator()
getComparator in class AggregatorFactorypublic Object finalizeComputation(Object object)
AggregatorFactoryfinalizeComputation in class AggregatorFactoryobject - the object to be finalizedpublic List<String> requiredFields()
requiredFields in class AggregatorFactorypublic AggregatorFactory getMergingFactory(AggregatorFactory other) throws AggregatorFactoryNotMergeableException
AggregatorFactorygetMergingFactory in class AggregatorFactoryAggregatorFactoryNotMergeableExceptionCopyright © 2011–2017. All rights reserved.