Class PipelineAggregator
java.lang.Object
org.elasticsearch.search.aggregations.pipeline.PipelineAggregator
- All Implemented Interfaces:
NamedWriteable
,Writeable
- Direct Known Subclasses:
BucketScriptPipelineAggregator
,BucketSelectorPipelineAggregator
,BucketSortPipelineAggregator
,CumulativeSumPipelineAggregator
,DerivativePipelineAggregator
,MovAvgPipelineAggregator
,MovFnPipelineAggregator
,SerialDiffPipelineAggregator
,SiblingPipelineAggregator
public abstract class PipelineAggregator extends java.lang.Object implements NamedWriteable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PipelineAggregator.Parser
Parse thePipelineAggregationBuilder
from aXContentParser
.static class
PipelineAggregator.PipelineTree
Tree ofPipelineAggregator
s to modify a tree of aggregations after their final reduction.Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
Constructors Modifier Constructor Description protected
PipelineAggregator(java.lang.String name, java.lang.String[] bucketsPaths, java.util.Map<java.lang.String,java.lang.Object> metadata)
protected
PipelineAggregator(StreamInput in)
Deprecated.pipeline aggregations added after 7.8.0 shouldn't call this -
Method Summary
Modifier and Type Method Description java.lang.String[]
bucketsPaths()
protected void
doWriteTo(StreamOutput out)
Deprecated.pipeline aggregations added after 7.8.0 don't need to implement thisjava.lang.String
getWriteableName()
Deprecated.pipeline aggregations added after 7.8.0 don't need to implement thisjava.util.Map<java.lang.String,java.lang.Object>
metadata()
java.lang.String
name()
abstract InternalAggregation
reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
void
writeTo(StreamOutput out)
Deprecated.pipeline aggregations added after 7.8.0 shouldn't call thisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PipelineAggregator
protected PipelineAggregator(java.lang.String name, java.lang.String[] bucketsPaths, java.util.Map<java.lang.String,java.lang.Object> metadata) -
PipelineAggregator
Deprecated.pipeline aggregations added after 7.8.0 shouldn't call thisRead from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Deprecated.pipeline aggregations added after 7.8.0 shouldn't call thisWrite this into the StreamOutput. -
doWriteTo
Deprecated.pipeline aggregations added after 7.8.0 don't need to implement thisWrite the body of the aggregation to the wire.- Throws:
java.io.IOException
-
getWriteableName
@Deprecated public java.lang.String getWriteableName()Deprecated.pipeline aggregations added after 7.8.0 don't need to implement thisThe name of the writeable object.- Specified by:
getWriteableName
in interfaceNamedWriteable
-
name
public java.lang.String name() -
bucketsPaths
public java.lang.String[] bucketsPaths() -
metadata
public java.util.Map<java.lang.String,java.lang.Object> metadata() -
reduce
public abstract InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
-