public class ThetaSketchAggregation extends SketchAggregation
Constructor and Description |
---|
ThetaSketchAggregation(String name,
String fieldName,
int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
The Type name for the aggregation in the druid configuration.
|
boolean |
isSketch()
Indicate if the MetricField is based on a sketch.
|
ThetaSketchAggregation |
withFieldName(String fieldName)
Creates a new Aggregation with the provided field name.
|
ThetaSketchAggregation |
withName(String name)
Creates a new Aggregation with the provided name.
|
ThetaSketchAggregation |
withSize(int size)
Creates a SketchAggregation with the provided bucketSize.
|
equals, getSize, hashCode
getDependentDimensions, getFieldName, getName, isFloatingPoint, nest, toString
public String getType()
Aggregation
getType
in class Aggregation
public ThetaSketchAggregation withName(String name)
Aggregation
withName
in class Aggregation
name
- Name for the new aggregationpublic ThetaSketchAggregation withFieldName(String fieldName)
Aggregation
withFieldName
in class Aggregation
fieldName
- Field name for the new aggregationpublic ThetaSketchAggregation withSize(int size)
SketchAggregation
withSize
in class SketchAggregation
size
- Size for the new SketchAggregationpublic boolean isSketch()
MetricField
isSketch
in interface MetricField
isSketch
in class Aggregation
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.