NamedWriteable
, Writeable
public class StatsBucketPipelineAggregator extends BucketMetricsPipelineAggregator
PipelineAggregator.Parser
Writeable.Reader<V>, Writeable.Writer<V>
format, gapPolicy
Modifier | Constructor | Description |
---|---|---|
protected |
StatsBucketPipelineAggregator(java.lang.String name,
java.lang.String[] bucketsPaths,
BucketHelpers.GapPolicy gapPolicy,
DocValueFormat formatter,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
|
|
StatsBucketPipelineAggregator(StreamInput in) |
Modifier and Type | Method | Description |
---|---|---|
protected InternalAggregation |
buildAggregation(java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metadata) |
Called after a collection run is finished to build the aggregation for
the collected state.
|
protected void |
collectBucketValue(java.lang.String bucketKey,
java.lang.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
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
protected void |
preCollection() |
Called before initial collection and between successive collection runs.
|
doReduce, doWriteTo, innerWriteTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bucketsPaths, metaData, name, writeTo
reduce
protected StatsBucketPipelineAggregator(java.lang.String name, java.lang.String[] bucketsPaths, BucketHelpers.GapPolicy gapPolicy, DocValueFormat formatter, java.util.Map<java.lang.String,java.lang.Object> metaData)
public StatsBucketPipelineAggregator(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
protected void preCollection()
BucketMetricsPipelineAggregator
preCollection
in class BucketMetricsPipelineAggregator
protected void collectBucketValue(java.lang.String bucketKey, java.lang.Double bucketValue)
BucketMetricsPipelineAggregator
collectBucketValue
in class BucketMetricsPipelineAggregator
bucketKey
- the key for this bucket as a StringbucketValue
- the value of the metric specified in bucketsPath
for this bucketprotected InternalAggregation buildAggregation(java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metadata)
BucketMetricsPipelineAggregator
buildAggregation
in class BucketMetricsPipelineAggregator
pipelineAggregators
- the pipeline aggregators to add to the resulting aggregationmetadata
- the metadata to add to the resulting aggregation