Class Equals
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.BinaryScalarFunction
org.elasticsearch.xpack.esql.core.expression.predicate.BinaryPredicate<Object,Object,Boolean,BinaryComparisonOperation>
org.elasticsearch.xpack.esql.core.expression.predicate.BinaryOperator<Object,Object,Boolean,BinaryComparisonOperation>
org.elasticsearch.xpack.esql.core.expression.predicate.operator.comparison.BinaryComparison
org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.EsqlBinaryComparison
org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.Equals
- All Implemented Interfaces:
NamedWriteable,Writeable,TranslationAware,TranslationAware.SingleValueTranslationAware,Resolvable,Negatable<EsqlBinaryComparison>,EvaluatorMapper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.EsqlBinaryComparison
EsqlBinaryComparison.BinaryComparisonOperation, EsqlBinaryComparison.BinaryOperatorConstructorNested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
Expression.TypeResolutionNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.evaluator.mapper.EvaluatorMapper
EvaluatorMapper.ToEvaluatorNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
TranslationAware.FinishedTranslatable, TranslationAware.SingleValueTranslationAware, TranslationAware.TranslatableNested 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_SIZEFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionEquals(Source source, Expression left, Expression right) Equals(Source source, Expression left, Expression right, ZoneId zoneId) -
Method Summary
Modifier and TypeMethodDescriptionasQuery(LucenePushdownPredicates pushdownPredicates, TranslatorHandler handler) This method is responsible for pushing the ES|QL Binary Comparison operators into Lucene.info()Normally, you want to use one of the staticcreatemethods to implement this.negate()protected EqualsreplaceChildren(Expression newLeft, Expression newRight) reverse()Reverses the direction of this comparison on the comparison axis.translatable(LucenePushdownPredicates pushdownPredicates) Can this instance be translated or not? Usually checks whether the expression arguments are actual fields that exist in Lucene.Methods inherited from class org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.EsqlBinaryComparison
checkCompatibility, fold, formatIncompatibleTypesMessage, getFunctionType, readFrom, resolveInputType, resolveType, singleValueField, toEvaluator, writeToMethods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.operator.comparison.BinaryComparison
compare, dataType, zoneIdMethods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.BinaryOperator
canonicalize, collectCommutative, isCommutativeMethods inherited from class org.elasticsearch.xpack.esql.core.expression.predicate.BinaryPredicate
equals, function, hashCode, nodeString, symbolMethods inherited from class org.elasticsearch.xpack.esql.core.expression.function.scalar.BinaryScalarFunction
foldable, left, replaceChildren, rightMethods inherited from class org.elasticsearch.xpack.esql.core.expression.function.Function
arguments, functionName, 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, collect, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUpMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.esql.evaluator.mapper.EvaluatorMapper
foldMethods inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
asLuceneQuery
-
Field Details
-
ENTRY
-
-
Constructor Details
-
Equals
-
Equals
-
-
Method Details
-
translatable
Description copied from interface:TranslationAwareCan this instance be translated or not? Usually checks whether the expression arguments are actual fields that exist in Lucene. SeeTranslationAware.Translatablefor precisely what can be signaled from this method.- Specified by:
translatablein interfaceTranslationAware- Overrides:
translatablein classEsqlBinaryComparison
-
asQuery
Description copied from class:EsqlBinaryComparisonThis method is responsible for pushing the ES|QL Binary Comparison operators into Lucene. It covers: In general, we are able to push these down when one of the arguments is a constant (i.e. is foldable). This class assumes that an earlier pass through the query has rearranged things so that the foldable value will be the right hand side input to the operation.- Specified by:
asQueryin interfaceTranslationAware- Overrides:
asQueryin classEsqlBinaryComparison
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
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<Expression>
-
replaceChildren
- Specified by:
replaceChildrenin classBinaryScalarFunction
-
swapLeftAndRight
- Specified by:
swapLeftAndRightin classBinaryOperator<Object,Object, Boolean, BinaryComparisonOperation>
-
reverse
Description copied from class:BinaryComparisonReverses the direction of this comparison on the comparison axis. Some operations like Greater/LessThan/OrEqual will behave as if the operands of a numerical comparison get multiplied with a negative number. Others like Not/Equal can be immutable to this operation.- Specified by:
reversein classBinaryComparison
-
negate
- Specified by:
negatein interfaceNegatable<EsqlBinaryComparison>
-