Record Class Predicate.PartitionPredicate
java.lang.Object
java.lang.Record
com.loomcache.server.query.Predicate.PartitionPredicate
- All Implemented Interfaces:
Predicate
- Enclosing interface:
Predicate
public static record Predicate.PartitionPredicate(Object partitionKey, Predicate delegate)
extends Record
implements Predicate
Predicate wrapper that carries an explicit partition key for query routing.
The delegate still performs row filtering; the partition key only tells the sharded query executor which single owner group can satisfy the query.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Predicate
Predicate.AndPredicate, Predicate.BetweenPredicate, Predicate.EqualsPredicate, Predicate.FalsePredicate, Predicate.GreaterThanOrEqualPredicate, Predicate.GreaterThanPredicate, Predicate.ILikePredicate, Predicate.InPredicate, Predicate.JoinColumnEqualsPredicate, Predicate.JoinPredicate, Predicate.LessThanOrEqualPredicate, Predicate.LessThanPredicate, Predicate.LikePredicate, Predicate.NotEqualsPredicate, Predicate.NotPredicate, Predicate.OrPredicate, Predicate.PartitionPredicate, Predicate.RegexPredicate, Predicate.TruePredicate -
Constructor Summary
ConstructorsConstructorDescriptionPartitionPredicate(Object partitionKey, Predicate delegate) Creates an instance of aPartitionPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTests whether the given row matches this predicate.Returns the value of thepartitionKeyrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionPredicate
-
-
Method Details
-
matches
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
partitionKey
Returns the value of thepartitionKeyrecord component.- Returns:
- the value of the
partitionKeyrecord component
-
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-