Class YqlPredicate

java.lang.Object
tech.ydb.yoj.repository.ydb.yql.YqlPredicate
All Implemented Interfaces:
YqlStatementPart<YqlPredicate>

public abstract class YqlPredicate extends Object implements YqlStatementPart<YqlPredicate>
Represents a predicate: a boolean expression that can appear in the WHERE YQL clause.

To return valid YQL template for the predicate, including references to statement parameters (as ?) and entity fields (as {field.subfield}), call toYql().

To construct simple predicates, use static methods of this class, e.g., in() and eq(String, Object).

To invert your predicate, call negate() (instance method) or not(pred) (static method).
To combine predicates, use the and() and or() (both static and instance methods are available).