public class SamplingAggregator extends Aggregator
| Constructor and Description |
|---|
SamplingAggregator(String name,
int value,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getStartTimeAlignmentStartTime() |
TimeUnit |
getUnit() |
int |
getValue() |
int |
hashCode() |
Boolean |
isAlignSampling() |
Boolean |
isAlignStartTime() |
SamplingAggregator |
withAlignment(Boolean alignStartTime,
Boolean alignSampling)
Deprecated.
|
SamplingAggregator |
withSamplingAlignment()
Alignment based on the sampling size.
|
SamplingAggregator |
withStartTimeAlignment()
Alignment based on the aggregation range rather than the value of the first
data point within that range.
|
SamplingAggregator |
withStartTimeAlignment(long startTime)
Alignment that starts based on the specified time.
|
getNamepublic int getValue()
public TimeUnit getUnit()
public SamplingAggregator withSamplingAlignment()
Alignment based on the sampling size. For example if your sample size is either milliseconds, seconds, minutes or hours then the start of the range will always be at the top of the hour. The effect of setting this to true is that your data will take the same shape when graphed as you refresh the data.
Only one alignment type can be used.
public SamplingAggregator withStartTimeAlignment()
Alignment based on the aggregation range rather than the value of the first data point within that range. Only one alignment type can be used.
public SamplingAggregator withStartTimeAlignment(long startTime)
Alignment that starts based on the specified time. For example, if startTime is set to noon today,then alignment starts at noon today.
Only one alignment type can be used.
startTime - the alignment start time@Deprecated public SamplingAggregator withAlignment(Boolean alignStartTime, Boolean alignSampling)
public Boolean isAlignStartTime()
public Boolean isAlignSampling()
public long getStartTimeAlignmentStartTime()
public boolean equals(Object o)
equals in class Aggregatorpublic int hashCode()
hashCode in class AggregatorCopyright © 2018. All rights reserved.