Interface Predicate
- All Known Subinterfaces:
Predicate.JoinPredicate
- All Known Implementing Classes:
Predicate.AndPredicate, Predicate.BetweenPredicate, Predicate.EqualsPredicate, Predicate.FalsePredicate, Predicate.GreaterThanOrEqualPredicate, Predicate.GreaterThanPredicate, Predicate.ILikePredicate, Predicate.InPredicate, Predicate.JoinColumnEqualsPredicate, Predicate.LessThanOrEqualPredicate, Predicate.LessThanPredicate, Predicate.LikePredicate, Predicate.NotEqualsPredicate, Predicate.NotPredicate, Predicate.OrPredicate, Predicate.PartitionPredicate, Predicate.RegexPredicate, Predicate.TruePredicate
public sealed interface Predicate
permits Predicate.JoinPredicate, Predicate.TruePredicate, Predicate.PartitionPredicate, Predicate.FalsePredicate, Predicate.EqualsPredicate, Predicate.NotEqualsPredicate, Predicate.GreaterThanPredicate, Predicate.GreaterThanOrEqualPredicate, Predicate.LessThanPredicate, Predicate.LessThanOrEqualPredicate, Predicate.LikePredicate, Predicate.ILikePredicate, Predicate.RegexPredicate, Predicate.BetweenPredicate, Predicate.InPredicate, Predicate.AndPredicate, Predicate.OrPredicate, Predicate.NotPredicate
Sealed interface for filter predicates.
Supports pattern matching and allows composition of complex conditions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordPredicate that combines two predicates with AND logic.static final recordPredicate that tests BETWEEN: field BETWEEN low AND high (inclusive)static final recordPredicate that tests equality: field == valuestatic final classPredicate that always returns false.static final recordPredicate that tests greater than or equal: field >= valuestatic final recordPredicate that tests greater than: field > valuestatic final classPredicate that tests case-insensitive LIKE pattern matching with SQL wildcards.static final recordPredicate that tests IN: field IN (values...)static final recordJoin predicate that tests equality between a left and right column.static interfacePredicate variant for join conditions that need access to both source rows.static final recordPredicate that tests less than or equal: field invalid input: '<'= valuestatic final recordPredicate that tests less than: field invalid input: '<' valuestatic final classPredicate that tests LIKE pattern matching with SQL wildcards (% and _).static final recordPredicate that tests inequality: field !static final recordPredicate that negates another predicate.static final recordPredicate that combines two predicates with OR logic.static final recordPredicate wrapper that carries an explicit partition key for query routing.static final classPredicate that tests Java regex matching against a field's string value.static final classPredicate that always returns true. -
Method Summary
-
Method Details
-
matches
Tests whether the given row matches this predicate.- Parameters:
row- the row to test- Returns:
- true if the row matches, false otherwise
-