Class RangeSelector
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<LogicalPlan>
org.elasticsearch.xpack.esql.plan.QueryPlan<LogicalPlan>
org.elasticsearch.xpack.esql.plan.logical.LogicalPlan
org.elasticsearch.xpack.esql.plan.logical.UnaryPlan
org.elasticsearch.xpack.esql.plan.logical.promql.selector.Selector
org.elasticsearch.xpack.esql.plan.logical.promql.selector.RangeSelector
- All Implemented Interfaces:
NamedWriteable,Writeable,Resolvable
Represents a PromQL range vector selector.
A range vector selects time series based on metric name and label matchers,
with a lookback time range. This corresponds to PromQL syntax:
metric_name{label="value"}[duration] offset 5m @ timestamp
Examples:
http_requests_total[5m]
cpu_usage{host="web-1"}[1h]
memory_used{env=~"prod.*"}[30m] offset 10m
The range vector selects all samples within the specified duration for each
matching time series, preparing data for range functions like rate() or avg_over_time().
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.plan.logical.LogicalPlan
LogicalPlan.StageNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.plan.logical.promql.selector.Selector
outputFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionRangeSelector(Source source, Expression series, List<Expression> labels, LabelMatchers labelMatchers, Expression range, Evaluation evaluation) RangeSelector(Source source, LogicalPlan child, Expression series, List<Expression> labels, LabelMatchers labelMatchers, Expression range, Evaluation evaluation) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected NodeInfo<RangeSelector> info()range()replaceChild(LogicalPlan newChild) Methods inherited from class org.elasticsearch.xpack.esql.plan.logical.promql.selector.Selector
evaluation, expressionsResolved, getWriteableName, labelMatchers, labels, series, writeToMethods inherited from class org.elasticsearch.xpack.esql.plan.logical.UnaryPlan
child, inputSet, output, outputSet, replaceChildrenMethods inherited from class org.elasticsearch.xpack.esql.plan.logical.LogicalPlan
analyzed, childrenResolved, optimized, preAnalyzed, preOptimized, resolved, setAnalyzed, setOptimized, setPreAnalyzed, setPreOptimizedMethods inherited from class org.elasticsearch.xpack.esql.plan.QueryPlan
computeExpressions, computeReferences, 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, collect, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, 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
-
Constructor Details
-
RangeSelector
public RangeSelector(Source source, Expression series, List<Expression> labels, LabelMatchers labelMatchers, Expression range, Evaluation evaluation) -
RangeSelector
public RangeSelector(Source source, LogicalPlan child, Expression series, List<Expression> labels, LabelMatchers labelMatchers, Expression range, Evaluation evaluation)
-
-
Method Details
-
range
-
info
- Specified by:
infoin classNode<LogicalPlan>
-
replaceChild
- Specified by:
replaceChildin classUnaryPlan
-
equals
-
hashCode
public int hashCode()
-