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, mergeAggregatorsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCacheKeyprotected 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)
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 AggregatorFactory getMergingFactory(AggregatorFactory other) throws AggregatorFactoryNotMergeableException
AggregatorFactorygetMergingFactory in class AggregatorFactoryAggregatorFactoryNotMergeableExceptionpublic List<String> requiredFields()
requiredFields in class AggregatorFactorypublic Object finalizeComputation(Object object)
AggregatorFactoryfinalizeComputation in class AggregatorFactoryobject - the object to be finalizedpublic String getName()
getName in class AggregatorFactorypublic String getFieldName()
public String getExpression()
Copyright © 2011–2018. All rights reserved.