public abstract class SimpleDoubleAggregatorFactory extends AggregatorFactory
Modifier and Type | Field and Description |
---|---|
protected String |
expression |
protected String |
fieldName |
protected ExprMacroTable |
macroTable |
protected String |
name |
protected boolean |
storeDoubleAsFloat |
Constructor and Description |
---|
SimpleDoubleAggregatorFactory(ExprMacroTable macroTable,
String fieldName,
String name,
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 BaseDoubleColumnValueSelector |
getDoubleColumnSelector(ColumnSelectorFactory metricFactory,
double nullValue) |
String |
getExpression() |
String |
getFieldName() |
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 |
getName() |
String |
getTypeName() |
int |
hashCode() |
List<String> |
requiredFields() |
combine, factorize, factorizeBuffered, getCombiningFactory, getRequiredColumns, makeAggregateCombiner, mergeAggregators
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCacheKey
protected final String name
protected final String fieldName
protected final String expression
protected final ExprMacroTable macroTable
protected final boolean storeDoubleAsFloat
public SimpleDoubleAggregatorFactory(ExprMacroTable macroTable, String fieldName, String name, String expression)
protected BaseDoubleColumnValueSelector getDoubleColumnSelector(ColumnSelectorFactory metricFactory, double nullValue)
public Object deserialize(Object object)
AggregatorFactory
deserialize
in class AggregatorFactory
object
- the object to deserializepublic String getTypeName()
getTypeName
in class AggregatorFactory
public int getMaxIntermediateSize()
AggregatorFactory
getMaxIntermediateSize
in class AggregatorFactory
public Comparator getComparator()
getComparator
in class AggregatorFactory
public AggregatorFactory getMergingFactory(AggregatorFactory other) throws AggregatorFactoryNotMergeableException
AggregatorFactory
getMergingFactory
in class AggregatorFactory
AggregatorFactoryNotMergeableException
public List<String> requiredFields()
requiredFields
in class AggregatorFactory
public Object finalizeComputation(Object object)
AggregatorFactory
finalizeComputation
in class AggregatorFactory
object
- the object to be finalizedpublic String getName()
getName
in class AggregatorFactory
public String getFieldName()
public String getExpression()
Copyright © 2011–2018. All rights reserved.