public class ConstantPostAggregation extends PostAggregation
PostAggregation.DefaultPostAggregationType| Constructor and Description |
|---|
ConstantPostAggregation(String name,
double value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<Dimension> |
getDependentDimensions()
Get the dimensions, if any, this metric depends on.
|
double |
getValue() |
int |
hashCode() |
ConstantPostAggregation |
withName(String name)
Get a new instance of this PostAggregation with the given name.
|
ConstantPostAggregation |
withValue(double value)
Get a new instance of this with the given value.
|
getName, getType, isFloatingPoint, isSketch, toStringpublic ConstantPostAggregation(String name, double value)
name - Name of the post-aggregationvalue - Constant value of the post-aggregationpublic double getValue()
public Set<Dimension> getDependentDimensions()
MetricFieldpublic ConstantPostAggregation withName(String name)
PostAggregationwithName in class PostAggregationname - Name of the new PostAggregation.public ConstantPostAggregation withValue(double value)
value - Value of the new instance.public boolean equals(Object o)
equals in class PostAggregationpublic int hashCode()
hashCode in class PostAggregationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.