public abstract class Aggregation extends Object implements MetricField
Constructor and Description |
---|
Aggregation(String name,
String fieldName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<Dimension> |
getDependentDimensions()
Get the dimensions, if any, this metric depends on.
|
String |
getFieldName()
The field name for aggregation.
|
String |
getName()
Get the name of the metric field in the response.
|
abstract String |
getType()
The Type name for the aggregation in the druid configuration.
|
int |
hashCode() |
boolean |
isFloatingPoint()
Indicate if the MetricField is a floating-point value.
|
boolean |
isSketch()
Indicate if the MetricField is based on a sketch.
|
org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> |
nest()
Splits an Aggregation for 2-pass aggregation into an inner & outer Aggregation.
|
String |
toString() |
abstract Aggregation |
withFieldName(String fieldName)
Creates a new Aggregation with the provided field name.
|
abstract Aggregation |
withName(String name)
Creates a new Aggregation with the provided name.
|
public String getName()
MetricField
getName
in interface MetricField
public String getFieldName()
public abstract String getType()
public abstract Aggregation withName(String name)
name
- Name for the new aggregationpublic abstract Aggregation withFieldName(String fieldName)
fieldName
- Field name for the new aggregationpublic org.apache.commons.lang3.tuple.Pair<Aggregation,Aggregation> nest()
public boolean isSketch()
MetricField
isSketch
in interface MetricField
public boolean isFloatingPoint()
MetricField
isFloatingPoint
in interface MetricField
public Set<Dimension> getDependentDimensions()
MetricField
getDependentDimensions
in interface MetricField
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.