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, toString
public ConstantPostAggregation(String name, double value)
name
- Name of the post-aggregationvalue
- Constant value of the post-aggregationpublic double getValue()
public Set<Dimension> getDependentDimensions()
MetricField
public ConstantPostAggregation withName(String name)
PostAggregation
withName
in class PostAggregation
name
- Name of the new PostAggregation.public ConstantPostAggregation withValue(double value)
value
- Value of the new instance.public boolean equals(Object o)
equals
in class PostAggregation
public int hashCode()
hashCode
in class PostAggregation
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.