public class ArithmeticPostAggregation extends PostAggregation implements WithFields<ArithmeticPostAggregation>
| Modifier and Type | Class and Description |
|---|---|
static class |
ArithmeticPostAggregation.ArithmeticPostAggregationFunction
The defined arithmetic functions for post aggregation.
|
PostAggregation.DefaultPostAggregationType| Constructor and Description |
|---|
ArithmeticPostAggregation(String name,
ArithmeticPostAggregation.ArithmeticPostAggregationFunction fn,
List<PostAggregation> fields)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<PostAggregation> |
getFields()
An interface method to get all the post aggregation fields.
|
ArithmeticPostAggregation.ArithmeticPostAggregationFunction |
getFn() |
int |
hashCode() |
boolean |
isFloatingPoint()
Indicate if the MetricField is a floating-point value.
|
String |
toString() |
ArithmeticPostAggregation |
withFields(List<PostAggregation> fields)
withFields provides new instance of respective class created from fields.
|
ArithmeticPostAggregation |
withFn(ArithmeticPostAggregation.ArithmeticPostAggregationFunction fn)
Get a new instance of this with the given function.
|
ArithmeticPostAggregation |
withName(String name)
Get a new instance of this PostAggregation with the given name.
|
getName, getType, isSketchclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDependentDimensionsgetName, isSketchpublic ArithmeticPostAggregation(String name, ArithmeticPostAggregation.ArithmeticPostAggregationFunction fn, List<PostAggregation> fields)
name - Name of the post-aggregationfn - Arithmetic function the post-aggregation should applyfields - Fields the post-aggregation will operate onpublic ArithmeticPostAggregation.ArithmeticPostAggregationFunction getFn()
public List<PostAggregation> getFields()
WithFieldsgetFields in interface WithFields<ArithmeticPostAggregation>public boolean isFloatingPoint()
MetricFieldisFloatingPoint in interface MetricFieldisFloatingPoint in class PostAggregationpublic ArithmeticPostAggregation withName(String name)
PostAggregationwithName in class PostAggregationname - Name of the new PostAggregation.public ArithmeticPostAggregation withFn(ArithmeticPostAggregation.ArithmeticPostAggregationFunction fn)
fn - Function of the new instance.public ArithmeticPostAggregation withFields(List<PostAggregation> fields)
WithFieldswithFields in interface WithFields<ArithmeticPostAggregation>fields - List of post aggregation fieldspublic String toString()
toString in class PostAggregationpublic int hashCode()
hashCode in class PostAggregationpublic boolean equals(Object o)
equals in class PostAggregationCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.