Record Class Predicate.JoinColumnEqualsPredicate
java.lang.Object
java.lang.Record
com.loomcache.server.query.Predicate.JoinColumnEqualsPredicate
- All Implemented Interfaces:
Predicate, Predicate.JoinPredicate
- Enclosing interface:
Predicate
public static record Predicate.JoinColumnEqualsPredicate(String leftFieldName, String rightFieldName)
extends Record
implements Predicate.JoinPredicate
Join predicate that tests equality between a left and right column.
-
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
ConstructorsConstructorDescriptionJoinColumnEqualsPredicate(String leftFieldName, String rightFieldName) Creates an instance of aJoinColumnEqualsPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theleftFieldNamerecord component.booleanTests whether the given pair of rows matches this join predicate.Returns the value of therightFieldNamerecord component.toString()Returns a string representation of this record class.Methods inherited from interface Predicate.JoinPredicate
matches
-
Constructor Details
-
JoinColumnEqualsPredicate
-
-
Method Details
-
matches
Description copied from interface:Predicate.JoinPredicateTests whether the given pair of rows matches this join predicate.- Specified by:
matchesin interfacePredicate.JoinPredicate- Parameters:
leftRow- the left-hand side rowrightRow- the right-hand side row- Returns:
- true if the row pair matches, false otherwise
-
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). -
leftFieldName
Returns the value of theleftFieldNamerecord component.- Returns:
- the value of the
leftFieldNamerecord component
-
rightFieldName
Returns the value of therightFieldNamerecord component.- Returns:
- the value of the
rightFieldNamerecord component
-