Class NotQuery
java.lang.Object
org.elasticsearch.xpack.esql.core.querydsl.query.Query
org.elasticsearch.xpack.esql.core.querydsl.query.NotQuery
Query that inverts the set of matched documents.
-
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.core.querydsl.query.Query
NO_SCORE_BOOST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryBuilderUsed internally to convert to retrieve aQueryBuilderby queries.child()booleanDoes the result of callingQuery.asBuilder()need the plan to serialize itself?booleaninthashCode()protected StringUsed byQuery.toString()to produce a pretty string.Negate this query, returning a query that includes documents that would returnfalsewhen running the represented operation.
-
Constructor Details
-
NotQuery
-
-
Method Details
-
child
-
asBuilder
Description copied from class:QueryUsed internally to convert to retrieve aQueryBuilderby queries. -
hashCode
public int hashCode() -
equals
-
innerToString
Description copied from class:QueryUsed byQuery.toString()to produce a pretty string.- Specified by:
innerToStringin classQuery
-
negate
Description copied from class:QueryNegate this query, returning a query that includes documents that would returnfalsewhen running the represented operation. The default implementation just returns aNotQuerywrappingthisbecause most queries don't model underlying operations that can returnnull. Queries that model expressions that can returnnullmust make sure all documents that would returnnullare still excluded from the match. -
containsPlan
public boolean containsPlan()Description copied from class:QueryDoes the result of callingQuery.asBuilder()need the plan to serialize itself?- Specified by:
containsPlanin classQuery
-