@Deprecated public class SketchCountAggregation extends SketchAggregation
Sketch count merges all the sketches while aggregating and then returns the cardinality of the set.
Constructor and Description |
---|
SketchCountAggregation(String name,
String fieldName,
int size)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
Deprecated.
The Type name for the aggregation in the druid configuration.
|
boolean |
isSketch()
Deprecated.
Indicate if the MetricField is based on a sketch.
|
org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> |
nest()
Deprecated.
Splits an Aggregation for 2-pass aggregation into an inner & outer Aggregation.
|
SketchCountAggregation |
withFieldName(String fieldName)
Deprecated.
Creates a new Aggregation with the provided field name.
|
SketchCountAggregation |
withName(String name)
Deprecated.
Creates a new Aggregation with the provided name.
|
SketchCountAggregation |
withSize(int size)
Deprecated.
Creates a SketchAggregation with the provided bucketSize.
|
equals, getSize, hashCode
getDependentDimensions, getFieldName, getName, isFloatingPoint, toString
public String getType()
Aggregation
getType
in class Aggregation
public SketchCountAggregation withName(String name)
Aggregation
withName
in class Aggregation
name
- Name for the new aggregationpublic SketchCountAggregation withFieldName(String fieldName)
Aggregation
withFieldName
in class Aggregation
fieldName
- Field name for the new aggregationpublic SketchCountAggregation withSize(int size)
SketchAggregation
withSize
in class SketchAggregation
size
- Size for the new SketchAggregationpublic org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> nest()
Aggregation
nest
in class Aggregation
public boolean isSketch()
MetricField
isSketch
in interface MetricField
isSketch
in class Aggregation
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.