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() |
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, 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
public SimpleFloatAggregatorFactory(ExprMacroTable macroTable, String name, String fieldName, String expression)
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 Object finalizeComputation(Object object)
AggregatorFactory
finalizeComputation
in class AggregatorFactory
object
- the object to be finalizedpublic List<String> requiredFields()
requiredFields
in class AggregatorFactory
public AggregatorFactory getMergingFactory(AggregatorFactory other) throws AggregatorFactoryNotMergeableException
AggregatorFactory
getMergingFactory
in class AggregatorFactory
AggregatorFactoryNotMergeableException
Copyright © 2011–2018. All rights reserved.