public interface AggregatorFactory
Modifier and Type | Method and Description |
---|---|
Object |
combine(Object lhs,
Object rhs)
A method that knows how to combine the outputs of the getIntermediate() method from the Aggregators
produced via factorize().
|
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.
|
Aggregator |
factorize(ColumnSelectorFactory metricFactory) |
BufferAggregator |
factorizeBuffered(ColumnSelectorFactory metricFactory) |
Object |
finalizeComputation(Object object)
"Finalizes" the computation of an object.
|
Object |
getAggregatorStartValue()
Returns the starting value for a corresponding aggregator.
|
byte[] |
getCacheKey() |
AggregatorFactory |
getCombiningFactory()
Returns an AggregatorFactory that can be used to combine the output of aggregators from this factory.
|
Comparator |
getComparator() |
int |
getMaxIntermediateSize()
Returns the maximum size that this aggregator will require in bytes for intermediate storage of results.
|
String |
getName() |
List<AggregatorFactory> |
getRequiredColumns()
Gets a list of all columns that this AggregatorFactory will scan
|
String |
getTypeName() |
List<String> |
requiredFields() |
Aggregator factorize(ColumnSelectorFactory metricFactory)
BufferAggregator factorizeBuffered(ColumnSelectorFactory metricFactory)
Comparator getComparator()
Object combine(Object lhs, Object rhs)
lhs
- The left hand side of the combinerhs
- The right hand side of the combineAggregatorFactory getCombiningFactory()
List<AggregatorFactory> getRequiredColumns()
Object deserialize(Object object)
object
- the object to deserializeObject finalizeComputation(Object object)
object
- the object to be finalizedString getName()
byte[] getCacheKey()
String getTypeName()
int getMaxIntermediateSize()
Object getAggregatorStartValue()
Copyright © 2011–2015. All rights reserved.