Class SampledAggregateExec
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
org.elasticsearch.xpack.esql.plan.physical.SampledAggregateExec
- All Implemented Interfaces:
NamedWriteable,Writeable,EstimatesRowSize
Aggregate, which is either:
- sampled with the
sampleProbabilityfor fast execution; or - replaced by an exact aggregate if the
originalAggregatescan be pushed down to Lucene.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.tree.Node
Node.NodeStringFormatNested 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
FieldsFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_LINES, TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionSampledAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, List<? extends NamedExpression> originalAggregates, Expression sampleProbability, AggregatorMode mode, List<Attribute> intermediateAttributes, List<Attribute> originalIntermediateAttributes, Integer estimatedRowSize) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected NodeInfo<AggregateExec> info()Normally, you want to use one of the staticcreatemethods to implement this.List<? extends NamedExpression> replaceChild(PhysicalPlan newChild) withAggregates(List<? extends NamedExpression> newAggregates) protected AggregateExecwithEstimatedSize(int estimatedRowSize) withMode(AggregatorMode newMode) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.plan.physical.AggregateExec
aggregates, computeReferences, estimatedRowSize, estimateRowSize, getMode, groupings, intermediateAttributes, outputMethods 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
allMatch, anyMatch, children, collect, collect, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, nodeString, nodeString, propertiesToString, replaceChildrenSameSize, source, sourceLocation, sourceText, toString, toString, transformChildren, transformChildren, transformDown, transformDown, transformDown, transformDown, transformDownSkipBranch, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Field Details
-
ENTRY
-
-
Constructor Details
-
SampledAggregateExec
public SampledAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, List<? extends NamedExpression> originalAggregates, Expression sampleProbability, AggregatorMode mode, List<Attribute> intermediateAttributes, List<Attribute> originalIntermediateAttributes, Integer estimatedRowSize)
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classAggregateExec- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Overrides:
getWriteableNamein classAggregateExec
-
info
Description copied from class:NodeNormally, you want to use one of the staticcreatemethods to implement this.For
QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations likeQueryPlan#transformExpressionsOnly(Function)will not have an effect.- Overrides:
infoin classAggregateExec
-
replaceChild
- Overrides:
replaceChildin classAggregateExec
-
withAggregates
- Overrides:
withAggregatesin classAggregateExec
-
withMode
- Overrides:
withModein classAggregateExec
-
withEstimatedSize
- Overrides:
withEstimatedSizein classAggregateExec
-
originalAggregates
-
sampleProbability
-
originalIntermediateAttributes
-
equals
- Overrides:
equalsin classAggregateExec
-
hashCode
public int hashCode()- Overrides:
hashCodein classAggregateExec
-