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, toString
public CountAggregation(String name)
name
- Name of the aggregation.public String getFieldName()
Aggregation
getFieldName
in class Aggregation
public String getType()
Aggregation
getType
in class Aggregation
public CountAggregation withName(String name)
Aggregation
withName
in class Aggregation
name
- Name for the new aggregationpublic Aggregation withFieldName(String fieldName)
Aggregation
withFieldName
in class Aggregation
fieldName
- Field name for the new aggregationpublic org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> nest()
nest
in class Aggregation
public boolean isFloatingPoint()
MetricField
isFloatingPoint
in interface MetricField
isFloatingPoint
in class Aggregation
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.