Class TimeSeriesAggregateExec
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.TimeSeriesAggregateExec
- All Implemented Interfaces:
NamedWriteable,Writeable,EstimatesRowSize
An extension of
Aggregate to perform time-series aggregation per time-series, such as rate or _over_time.
The grouping must be `_tsid` and `tbucket` or just `_tsid`.-
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
ConstructorsConstructorDescriptionTimeSeriesAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize, Bucket timeBucket) TimeSeriesAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize, Bucket timeBucket, Bucket outputTimeBucket) -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeInfo<AggregateExec> info()Normally, you want to use one of the staticcreatemethods to implement this.outputTimeBucketRounding(FoldContext foldContext) replaceChild(PhysicalPlan newChild) timeBucketRounding(FoldContext foldContext) 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, equals, estimatedRowSize, estimateRowSize, getMode, groupings, hashCode, 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
-
TimeSeriesAggregateExec
public TimeSeriesAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize, Bucket timeBucket) -
TimeSeriesAggregateExec
public TimeSeriesAggregateExec(Source source, PhysicalPlan child, List<? extends Expression> groupings, List<? extends NamedExpression> aggregates, AggregatorMode mode, List<Attribute> intermediateAttributes, Integer estimatedRowSize, Bucket timeBucket, Bucket outputTimeBucket)
-
-
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
-
timeBucket
-
outputTimeBucket
-
timeBucketRounding
-
outputTimeBucketRounding
-