public class HistogramAggregatorFactory extends Object implements AggregatorFactory
Constructor and Description |
---|
HistogramAggregatorFactory(String name,
String fieldName,
List<Float> breaksList) |
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.
|
boolean |
equals(Object o) |
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.
|
List<Float> |
getBreaks() |
byte[] |
getCacheKey() |
AggregatorFactory |
getCombiningFactory()
Returns an AggregatorFactory that can be used to combine the output of aggregators from this factory.
|
Comparator |
getComparator() |
String |
getFieldName() |
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() |
int |
hashCode() |
List<String> |
requiredFields() |
String |
toString() |
public Aggregator factorize(ColumnSelectorFactory metricFactory)
factorize
in interface AggregatorFactory
public BufferAggregator factorizeBuffered(ColumnSelectorFactory metricFactory)
factorizeBuffered
in interface AggregatorFactory
public Comparator getComparator()
getComparator
in interface AggregatorFactory
public Object combine(Object lhs, Object rhs)
AggregatorFactory
combine
in interface AggregatorFactory
lhs
- The left hand side of the combinerhs
- The right hand side of the combinepublic AggregatorFactory getCombiningFactory()
AggregatorFactory
getCombiningFactory
in interface AggregatorFactory
public List<AggregatorFactory> getRequiredColumns()
AggregatorFactory
getRequiredColumns
in interface AggregatorFactory
public Object deserialize(Object object)
AggregatorFactory
deserialize
in interface AggregatorFactory
object
- the object to deserializepublic Object finalizeComputation(Object object)
AggregatorFactory
finalizeComputation
in interface AggregatorFactory
object
- the object to be finalizedpublic String getName()
getName
in interface AggregatorFactory
public String getFieldName()
public List<String> requiredFields()
requiredFields
in interface AggregatorFactory
public byte[] getCacheKey()
getCacheKey
in interface AggregatorFactory
public String getTypeName()
getTypeName
in interface AggregatorFactory
public int getMaxIntermediateSize()
AggregatorFactory
getMaxIntermediateSize
in interface AggregatorFactory
public Object getAggregatorStartValue()
AggregatorFactory
getAggregatorStartValue
in interface AggregatorFactory
Copyright © 2011–2015. All rights reserved.