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
PipelineAggregator
s to modify a tree of aggregations
after their final reduction.-
Field Summary
Fields Modifier and Type Field Description static PipelineAggregator.PipelineTree
EMPTY
An empty tree ofPipelineAggregator
s. -
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()
ThePipelineAggregator
s for the aggregation at this position in the tree.boolean
hasSubTrees()
Returntrue
if this node in the tree has any subtrees.PipelineAggregator.PipelineTree
subTree(java.lang.String name)
Get the sub-tree at for the named sub-aggregation orEMPTY
if there are no pipeline aggragations for that sub-aggregator.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY
An empty tree ofPipelineAggregator
s.
-
-
Constructor Details
-
PipelineTree
public PipelineTree(java.util.Map<java.lang.String,PipelineAggregator.PipelineTree> subTrees, java.util.List<PipelineAggregator> aggregators)
-
-
Method Details
-
aggregators
ThePipelineAggregator
s for the aggregation at this position in the tree. -
subTree
Get the sub-tree at for the named sub-aggregation orEMPTY
if there are no pipeline aggragations for that sub-aggregator. -
hasSubTrees
public boolean hasSubTrees()Returntrue
if this node in the tree has any subtrees. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-