public class SumBucketPipelineAggregator extends BucketMetricsPipelineAggregator
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
SumBucketPipelineAggregator.Factory |
PipelineAggregator.Parser| 修飾子とタイプ | フィールドと説明 |
|---|---|
static PipelineAggregatorStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
formatter, gapPolicyAGGREGATION_TRANFORM_FUNCTION| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SumBucketPipelineAggregator(String name,
String[] bucketsPaths,
BucketHelpers.GapPolicy gapPolicy,
ValueFormatter formatter,
Map<String,Object> metaData) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 SumBucketPipelineAggregator(String name, String[] bucketsPaths, BucketHelpers.GapPolicy gapPolicy, ValueFormatter formatter, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type クラス内 PipelineAggregatorprotected void preCollection()
BucketMetricsPipelineAggregatorpreCollection クラス内 BucketMetricsPipelineAggregatorprotected void collectBucketValue(String bucketKey, Double bucketValue)
BucketMetricsPipelineAggregatorcollectBucketValue クラス内 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 クラス内 BucketMetricsPipelineAggregatorpipelineAggregators - the pipeline aggregators to add to the resulting aggregationmetadata - the metadata to add to the resulting aggregationCopyright © 2009–2016. All rights reserved.