Class ParameterizedQueryExec
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.LeafExec
org.elasticsearch.xpack.esql.plan.physical.ParameterizedQueryExec
- All Implemented Interfaces:
NamedWriteable,Writeable
Physical plan node representing a lookup source operation.
This represents the source of a lookup query before conversion to operators.
The QueryList is created later during operator creation from a factory
and will receive the Page to operate on in the runtime
when we call queryList.getQuery(position, inputPage).
-
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.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_LINES, TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionParameterizedQueryExec(Source source, List<Attribute> output, List<MatchConfig> matchFields, Expression joinOnConditions, QueryBuilder query) ParameterizedQueryExec(Source source, List<Attribute> output, List<MatchConfig> matchFields, Expression joinOnConditions, QueryBuilder query, boolean emptyResult) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()protected NodeInfo<ParameterizedQueryExec> info()Normally, you want to use one of the staticcreatemethods to implement this.output()The ordered list of attributes (i.e.query()withQuery(QueryBuilder query) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.plan.physical.LeafExec
computeReferences, replaceChildrenMethods inherited from class org.elasticsearch.xpack.esql.plan.QueryPlan
computeExpressions, expressions, forEachExpression, forEachExpression, forEachExpressionDown, forEachExpressionUp, inputSet, outputSet, 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
-
Constructor Details
-
ParameterizedQueryExec
public ParameterizedQueryExec(Source source, List<Attribute> output, List<MatchConfig> matchFields, @Nullable Expression joinOnConditions, @Nullable QueryBuilder query) -
ParameterizedQueryExec
public ParameterizedQueryExec(Source source, List<Attribute> output, List<MatchConfig> matchFields, @Nullable Expression joinOnConditions, @Nullable QueryBuilder query, boolean emptyResult)
-
-
Method Details
-
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.- Specified by:
outputin classQueryPlan<PhysicalPlan>
-
matchFields
-
joinOnConditions
-
query
-
emptyResult
public boolean emptyResult() -
withQuery
-
writeTo
- Throws:
IOException
-
getWriteableName
-
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.- Specified by:
infoin classNode<PhysicalPlan>
-
equals
- Specified by:
equalsin classPhysicalPlan
-
hashCode
public int hashCode()- Specified by:
hashCodein classPhysicalPlan
-