Class AggregateExec
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<PhysicalPlan>
org.elasticsearch.xpack.esql.plan.QueryPlan<PhysicalPlan>
org.elasticsearch.xpack.esql.plan.physical.PhysicalPlan
org.elasticsearch.xpack.esql.plan.physical.UnaryExec
org.elasticsearch.xpack.esql.plan.physical.AggregateExec
- All Implemented Interfaces:
NamedWriteable,Writeable,EstimatesRowSize
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.plan.physical.EstimatesRowSize
EstimatesRowSize.StateNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends NamedExpression> protected AttributeSetThis very likely needs to be overridden forQueryPlan.references()to be correct when inheriting.booleanEstimate of the number of bytes that'll be loaded per position before the stream of pages is consumed.Estimate the number of bytes that'll be loaded per position before the stream of pages is consumed.getMode()List<? extends Expression> inthashCode()protected NodeInfo<AggregateExec> info()Aggregations are usually performed in two steps, first partial (e.g.Returns the attributes that can be loaded from ordinals -- no explicit extraction is neededoutput()The ordered list of attributes (i.e.replaceChild(PhysicalPlan newChild) withMode(AggregatorMode newMode) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.plan.physical.UnaryExec
child, inputSet, outputSet, replaceChildrenMethods inherited from class org.elasticsearch.xpack.esql.plan.QueryPlan
computeExpressions, expressions, forEachExpression, forEachExpression, forEachExpressionDown, forEachExpressionUp, references, transformExpressionsDown, transformExpressionsDown, transformExpressionsOnly, transformExpressionsOnly, transformExpressionsOnlyUp, transformExpressionsUp, transformExpressionsUpMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, nodeString, propertiesToString, replaceChildrenSameSize, source, sourceLocation, sourceText, toString, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Field Details
-
ENTRY
-
-
Constructor Details
-
AggregateExec
public AggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize)
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
info
- Specified by:
infoin classNode<PhysicalPlan>
-
replaceChild
- Specified by:
replaceChildin classUnaryExec
-
groupings
-
aggregates
-
withMode
-
estimatedRowSize
Estimate of the number of bytes that'll be loaded per position before the stream of pages is consumed. -
estimateRowSize
Description copied from interface:EstimatesRowSizeEstimate the number of bytes that'll be loaded per position before the stream of pages is consumed.- Specified by:
estimateRowSizein interfaceEstimatesRowSize- Returns:
-
getMode
-
intermediateAttributes
Aggregations are usually performed in two steps, first partial (e.g. locally on a data node) then final (on the coordinator node). These are the intermediate attributes output by a partial aggregation or consumed by a final one. C.f.AbstractPhysicalOperationProviders.intermediateAttributes(java.util.List<? extends org.elasticsearch.xpack.esql.core.expression.NamedExpression>, java.util.List<? extends org.elasticsearch.xpack.esql.core.expression.Expression>). -
output
Description copied from class:QueryPlanThe ordered list of attributes (i.e. columns) this plan produces when executed. Must be called only on resolved plans, otherwise may throw an exception or return wrong results. -
computeReferences
Description copied from class:QueryPlanThis very likely needs to be overridden forQueryPlan.references()to be correct when inheriting. This can be called on unresolved plans and therefore must not rely on calls toQueryPlan.output().- Overrides:
computeReferencesin classQueryPlan<PhysicalPlan>
-
ordinalAttributes
Returns the attributes that can be loaded from ordinals -- no explicit extraction is needed -
hashCode
public int hashCode() -
equals
-