Class IsNotNull
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.core.expression.function.scalar.ScalarFunction
org.elasticsearch.xpack.esql.core.expression.function.scalar.UnaryScalarFunction
org.elasticsearch.xpack.esql.expression.predicate.nulls.IsNotNull
- All Implemented Interfaces:
NamedWriteable,Writeable,TranslationAware,Resolvable,Negatable<UnaryScalarFunction>
public class IsNotNull
extends UnaryScalarFunction
implements Negatable<UnaryScalarFunction>, TranslationAware
-
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.xpack.esql.capabilities.TranslationAware
TranslationAware.SingleValueTranslationAwareNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasQuery(TranslatorHandler handler) Translates the implementing expression into a Query.dataType()fold(FoldContext ctx) info()negate()nullable()protected IsNotNullreplaceChild(Expression newChild) booleantranslatable(LucenePushdownPredicates pushdownPredicates) Indicates whether the expression can be translated or not.Methods inherited from class org.elasticsearch.xpack.esql.core.expression.function.scalar.UnaryScalarFunction
field, foldable, replaceChildren, writeToMethods inherited from class org.elasticsearch.xpack.esql.core.expression.function.Function
arguments, equals, functionName, hashCode, nodeStringMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, canonicalize, childrenResolved, propertiesToString, references, resolved, resolveType, semanticEquals, semanticHash, toString, 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
-
Field Details
-
ENTRY
-
-
Constructor Details
-
IsNotNull
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
info
- Specified by:
infoin classNode<Expression>
-
replaceChild
- Specified by:
replaceChildin classUnaryScalarFunction
-
fold
- Specified by:
foldin classUnaryScalarFunction
-
nullable
-
dataType
- Specified by:
dataTypein classExpression
-
negate
- Specified by:
negatein interfaceNegatable<UnaryScalarFunction>
-
translatable
Description copied from interface:TranslationAwareIndicates whether the expression can be translated or not. Usually checks whether the expression arguments are actual fields that exist in Lucene.- Specified by:
translatablein interfaceTranslationAware
-
asQuery
Description copied from interface:TranslationAwareTranslates the implementing expression into a Query. If during translation a child needs to be translated first, the handler needs to be used even if the child implements this interface as well. This is to ensure that the child is wrapped in a SingleValueQuery if necessary.So use this:
Query childQuery = handler.asQuery(child);and not this:
Query childQuery = child.asQuery(handler);- Specified by:
asQueryin interfaceTranslationAware
-