Class Not
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.logical.Not
- All Implemented Interfaces:
NamedWriteable,Writeable,TranslationAware,Resolvable,Negatable<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.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
FieldsFields inherited from class org.elasticsearch.xpack.esql.core.expression.function.scalar.ScalarFunction
MAX_BYTES_REF_RESULT_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasQuery(TranslatorHandler handler) Translates the implementing expression into a Query.protected ExpressiondataType()fold(FoldContext ctx) info()negate()protected NotreplaceChild(Expression newChild) protected Expression.TypeResolutionbooleantranslatable(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, nodeString, nullableMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, childrenResolved, propertiesToString, references, resolved, 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
-
Not
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
info
- Specified by:
infoin classNode<Expression>
-
replaceChild
- Specified by:
replaceChildin classUnaryScalarFunction
-
resolveType
- Overrides:
resolveTypein classExpression
-
fold
- Specified by:
foldin classUnaryScalarFunction
-
canonicalize
- Overrides:
canonicalizein classExpression
-
negate
- Specified by:
negatein interfaceNegatable<Expression>
-
dataType
- Specified by:
dataTypein classExpression
-
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
-