Class ReferenceAttribute
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<Expression>
org.elasticsearch.xpack.esql.core.expression.Expression
org.elasticsearch.xpack.esql.core.expression.NamedExpression
org.elasticsearch.xpack.esql.core.expression.Attribute
org.elasticsearch.xpack.esql.core.expression.TypedAttribute
org.elasticsearch.xpack.esql.core.expression.ReferenceAttribute
- All Implemented Interfaces:
NamedWriteable,Writeable,Resolvable
Attribute based on a reference to an expression.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
Expression.TypeResolutionNested 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.expression.Attribute
SYNTHETIC_ATTRIBUTE_NAME_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionReferenceAttribute(Source source, String name, DataType dataType) ReferenceAttribute(Source source, String name, DataType dataType, Nullability nullability, NameId id, boolean synthetic) -
Method Summary
Modifier and TypeMethodDescriptionprotected Attributeclone(Source source, String name, DataType dataType, Nullability nullability, NameId id, boolean synthetic) protected NodeInfo<ReferenceAttribute> info()Return the information about this node.protected Stringlabel()static ReferenceAttributereadFrom(StreamInput in) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.core.expression.TypedAttribute
dataType, equals, hashCodeMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Attribute
canonicalize, nodeString, nullable, rawTemporaryName, references, replaceChildren, semanticEquals, semanticHash, toAttribute, toString, withDataType, withId, withLocation, withName, withNullabilityMethods inherited from class org.elasticsearch.xpack.esql.core.expression.NamedExpression
id, name, syntheticMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, childrenResolved, fold, foldable, propertiesToString, resolved, resolveType, typeResolvedMethods 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, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp
-
Constructor Details
-
ReferenceAttribute
-
ReferenceAttribute
public ReferenceAttribute(Source source, String name, DataType dataType, Nullability nullability, @Nullable NameId id, boolean synthetic)
-
-
Method Details
-
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
getWriteableName
-
clone
-
info
Description copied from class:NodeReturn the information about this node.Normally, you want to use one of the static
createmethods 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 of the properties are used in the provided constructor; otherwise query plan transformations likeQueryPlan#transformExpressionsOnly(Function)will not have an effect.- Specified by:
infoin classNode<Expression>
-
label
-