public class CountAggregation extends Aggregation
| Constructor and Description |
|---|
CountAggregation(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName()
The field name for aggregation.
|
String |
getType()
The Type name for the aggregation in the druid configuration.
|
boolean |
isFloatingPoint()
Indicate if the MetricField is a floating-point value.
|
org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> |
nest()
Nesting a 'count' aggregation changes the outer aggregation
to a 'longSum' whereas the inner aggregation remains unchanged.
|
Aggregation |
withFieldName(String fieldName)
Creates a new Aggregation with the provided field name.
|
CountAggregation |
withName(String name)
Creates a new Aggregation with the provided name.
|
equals, getDependentDimensions, getName, hashCode, isSketch, toStringpublic CountAggregation(String name)
name - Name of the aggregation.public String getFieldName()
AggregationgetFieldName in class Aggregationpublic String getType()
AggregationgetType in class Aggregationpublic CountAggregation withName(String name)
AggregationwithName in class Aggregationname - Name for the new aggregationpublic Aggregation withFieldName(String fieldName)
AggregationwithFieldName in class AggregationfieldName - Field name for the new aggregationpublic org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> nest()
nest in class Aggregationpublic boolean isFloatingPoint()
MetricFieldisFloatingPoint in interface MetricFieldisFloatingPoint in class AggregationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.