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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert to an ElasticsearchQueryBuilderall set up to execute the query.child()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:QueryConvert to an ElasticsearchQueryBuilderall set up to execute the query. -
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.
-