public class MinBucketPipelineAggregator extends BucketMetricsPipelineAggregator
| Modifier and Type | Class and Description |
|---|---|
static class |
MinBucketPipelineAggregator.Factory |
PipelineAggregator.Parser| Modifier and Type | Field and Description |
|---|---|
static PipelineAggregatorStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
formatter, gapPolicyAGGREGATION_TRANFORM_FUNCTION| Modifier | Constructor and Description |
|---|---|
protected |
MinBucketPipelineAggregator(String name,
String[] bucketsPaths,
BucketHelpers.GapPolicy gapPolicy,
ValueFormatter formatter,
Map<String,Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
protected InternalAggregation |
buildAggregation(List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metadata)
Called after a collection run is finished to build the aggregation for
the collected state.
|
protected void |
collectBucketValue(String bucketKey,
Double bucketValue)
Called for each bucket with a value so the state can be modified based on
the key and metric value for this bucket
|
protected void |
preCollection()
Called before initial collection and between successive collection runs.
|
static void |
registerStreams() |
InternalAggregation.Type |
type() |
doReadFrom, doReduce, doWriteTo, innerReadFrom, innerWriteToreducebucketsPaths, metaData, name, readFrom, writeTopublic static final InternalAggregation.Type TYPE
public static final PipelineAggregatorStreams.Stream STREAM
protected MinBucketPipelineAggregator(String name, String[] bucketsPaths, BucketHelpers.GapPolicy gapPolicy, ValueFormatter formatter, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type in class PipelineAggregatorprotected void preCollection()
BucketMetricsPipelineAggregatorpreCollection in class BucketMetricsPipelineAggregatorprotected void collectBucketValue(String bucketKey, Double bucketValue)
BucketMetricsPipelineAggregatorcollectBucketValue in class BucketMetricsPipelineAggregatorbucketKey - the key for this bucket as a StringbucketValue - the value of the metric specified in bucketsPath
for this bucketprotected InternalAggregation buildAggregation(List<PipelineAggregator> pipelineAggregators, Map<String,Object> metadata)
BucketMetricsPipelineAggregatorbuildAggregation in class BucketMetricsPipelineAggregatorpipelineAggregators - the pipeline aggregators to add to the resulting aggregationmetadata - the metadata to add to the resulting aggregationCopyright © 2009–2017. All rights reserved.