public class SketchMergeAggregatorFactory extends SketchAggregatorFactory
COMPARATOR, DEFAULT_MAX_SKETCH_SIZE, fieldName, name, size
Constructor and Description |
---|
SketchMergeAggregatorFactory(String name,
String fieldName,
Integer size,
Boolean shouldFinalize,
Boolean isInputThetaSketch) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
finalizeComputation(Object object)
Finalize the computation on sketch object and returns estimate from underlying
sketch.
|
AggregatorFactory |
getCombiningFactory()
Returns an AggregatorFactory that can be used to combine the output of aggregators from this factory.
|
boolean |
getIsInputThetaSketch() |
AggregatorFactory |
getMergingFactory(AggregatorFactory other)
Returns an AggregatorFactory that can be used to merge the output of aggregators from this factory and
other factory.
|
List<AggregatorFactory> |
getRequiredColumns()
Gets a list of all columns that this AggregatorFactory will scan
|
boolean |
getShouldFinalize() |
String |
getTypeName() |
int |
hashCode() |
String |
toString() |
combine, deserialize, factorize, factorizeBuffered, getAggregatorStartValue, getCacheKey, getComparator, getFieldName, getMaxIntermediateSize, getName, getSize, requiredFields
mergeAggregators
public List<AggregatorFactory> getRequiredColumns()
AggregatorFactory
getRequiredColumns
in class AggregatorFactory
public AggregatorFactory getCombiningFactory()
AggregatorFactory
getCombiningFactory
in class AggregatorFactory
public AggregatorFactory getMergingFactory(AggregatorFactory other) throws AggregatorFactoryNotMergeableException
AggregatorFactory
getMergingFactory
in class AggregatorFactory
AggregatorFactoryNotMergeableException
public boolean getShouldFinalize()
public boolean getIsInputThetaSketch()
public Object finalizeComputation(Object object)
finalizeComputation
in class AggregatorFactory
object
- the sketch objectpublic String getTypeName()
getTypeName
in class AggregatorFactory
public boolean equals(Object o)
equals
in class SketchAggregatorFactory
public int hashCode()
hashCode
in class SketchAggregatorFactory
public String toString()
toString
in class SketchAggregatorFactory
Copyright © 2011–2016. All rights reserved.