public abstract class PostAggregation extends Object implements MetricField
| Modifier and Type | Class and Description |
|---|---|
static class |
PostAggregation.DefaultPostAggregationType
Default types of post aggregations.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PostAggregation(PostAggregationType type,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Get the name of the metric field in the response.
|
PostAggregationType |
getType() |
int |
hashCode() |
boolean |
isFloatingPoint()
Indicate if the MetricField is a floating-point value.
|
boolean |
isSketch()
Indicate if the MetricField is based on a sketch.
|
String |
toString() |
abstract PostAggregation |
withName(String name)
Get a new instance of this PostAggregation with the given name.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDependentDimensionsprotected PostAggregation(PostAggregationType type, String name)
type - Type of PostAggregationname - Name of the post aggregation column. Most PostAggregations must have a name. FieldAccessor may be
the only one that does not have a name.public PostAggregationType getType()
public String getName()
MetricFieldgetName in interface MetricFieldpublic boolean isSketch()
MetricFieldisSketch in interface MetricFieldpublic boolean isFloatingPoint()
MetricFieldisFloatingPoint in interface MetricFieldpublic abstract PostAggregation withName(String name)
name - Name of the new PostAggregation.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.