Class PipelineAggregator.PipelineTree
java.lang.Object
org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree
- Enclosing class:
- PipelineAggregator
public static class PipelineAggregator.PipelineTree
extends java.lang.Object
Tree of
PipelineAggregators to modify a tree of aggregations
after their final reduction.-
Field Summary
Fields Modifier and Type Field Description static PipelineAggregator.PipelineTreeEMPTYAn empty tree ofPipelineAggregators. -
Constructor Summary
Constructors Constructor Description PipelineTree(java.util.Map<java.lang.String,PipelineAggregator.PipelineTree> subTrees, java.util.List<PipelineAggregator> aggregators) -
Method Summary
Modifier and Type Method Description java.util.List<PipelineAggregator>aggregators()ThePipelineAggregators for the aggregation at this position in the tree.booleanhasSubTrees()Returntrueif this node in the tree has any subtrees.PipelineAggregator.PipelineTreesubTree(java.lang.String name)Get the sub-tree at for the named sub-aggregation orEMPTYif there are no pipeline aggragations for that sub-aggregator.java.lang.StringtoString()
-
Field Details
-
EMPTY
An empty tree ofPipelineAggregators.
-
-
Constructor Details
-
PipelineTree
public PipelineTree(java.util.Map<java.lang.String,PipelineAggregator.PipelineTree> subTrees, java.util.List<PipelineAggregator> aggregators)
-
-
Method Details
-
aggregators
ThePipelineAggregators for the aggregation at this position in the tree. -
subTree
Get the sub-tree at for the named sub-aggregation orEMPTYif there are no pipeline aggragations for that sub-aggregator. -
hasSubTrees
public boolean hasSubTrees()Returntrueif this node in the tree has any subtrees. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-