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, isSketch
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDependentDimensions
getName, isSketch
public 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()
WithFields
getFields
in interface WithFields<ArithmeticPostAggregation>
public boolean isFloatingPoint()
MetricField
isFloatingPoint
in interface MetricField
isFloatingPoint
in class PostAggregation
public ArithmeticPostAggregation withName(String name)
PostAggregation
withName
in class PostAggregation
name
- Name of the new PostAggregation.public ArithmeticPostAggregation withFn(ArithmeticPostAggregation.ArithmeticPostAggregationFunction fn)
fn
- Function of the new instance.public ArithmeticPostAggregation withFields(List<PostAggregation> fields)
WithFields
withFields
in interface WithFields<ArithmeticPostAggregation>
fields
- List of post aggregation fieldspublic String toString()
toString
in class PostAggregation
public int hashCode()
hashCode
in class PostAggregation
public boolean equals(Object o)
equals
in class PostAggregation
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.