Class UnresolvedFunction
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<Expression>
org.elasticsearch.xpack.esql.core.expression.Expression
org.elasticsearch.xpack.esql.core.expression.function.Function
org.elasticsearch.xpack.esql.expression.function.UnresolvedFunction
- All Implemented Interfaces:
NamedWriteable,Writeable,Resolvable,Unresolvable
-
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 interface org.elasticsearch.xpack.esql.core.capabilities.Unresolvable
UNRESOLVED_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedFunction(Source source, String name, FunctionResolutionStrategy resolutionStrategy, List<Expression> children) UnresolvedFunction(Source source, String name, FunctionResolutionStrategy resolutionStrategy, List<Expression> children, boolean analyzed, String unresolvedMessage) Constructor used for specifying a more descriptive message (typically 'did you mean') instead of the default one. -
Method Summary
Modifier and TypeMethodDescriptionbooleananalyzed()buildResolved(Configuration configuration, FunctionDefinition def) Build a function to replace this one after resolving the function.dataType()booleaninthashCode()protected NodeInfo<UnresolvedFunction> info()missing(String normalizedName, Iterable<FunctionDefinition> alternatives) Build a markerUnresolvedFunctionwith an error message about the function being missing.name()nullable()replaceChildren(List<Expression> newChildren) booleanresolved()protected Expression.TypeResolutiontoString()withMessage(String message) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.core.expression.function.Function
arguments, functionNameMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, canonicalize, childrenResolved, fold, foldable, propertiesToString, references, semanticEquals, semanticHash, 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, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Constructor Details
-
UnresolvedFunction
public UnresolvedFunction(Source source, String name, FunctionResolutionStrategy resolutionStrategy, List<Expression> children) -
UnresolvedFunction
public UnresolvedFunction(Source source, String name, FunctionResolutionStrategy resolutionStrategy, List<Expression> children, boolean analyzed, String unresolvedMessage) Constructor used for specifying a more descriptive message (typically 'did you mean') instead of the default one.- See Also:
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
info
- Specified by:
infoin classNode<Expression>
-
replaceChildren
- Specified by:
replaceChildrenin classNode<Expression>
-
withMessage
-
buildResolved
Build a function to replace this one after resolving the function. -
missing
Build a markerUnresolvedFunctionwith an error message about the function being missing. -
resolved
public boolean resolved()- Specified by:
resolvedin interfaceResolvable- Specified by:
resolvedin interfaceUnresolvable- Overrides:
resolvedin classExpression
-
name
-
resolutionStrategy
-
analyzed
public boolean analyzed() -
resolveType
- Overrides:
resolveTypein classExpression
-
dataType
- Specified by:
dataTypein classExpression
-
nullable
-
unresolvedMessage
- Specified by:
unresolvedMessagein interfaceUnresolvable
-
toString
- Overrides:
toStringin classExpression
-
nodeString
- Overrides:
nodeStringin classFunction
-
equals
-
hashCode
public int hashCode()
-