File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
paimon-common/src/main/java/org/apache/paimon/predicate Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -77,4 +77,9 @@ public boolean equals(Object o) {
7777 public int hashCode () {
7878 return Objects .hashCode (fieldRef );
7979 }
80+
81+ @ Override
82+ public String toString () {
83+ return "FieldTransform{" + "fieldRef=" + fieldRef + '}' ;
84+ }
8085}
Original file line number Diff line number Diff line change 3232import java .io .ObjectOutputStream ;
3333import java .util .ArrayList ;
3434import java .util .List ;
35+ import java .util .Objects ;
3536import java .util .Optional ;
3637
3738import static org .apache .paimon .utils .InternalRowUtils .get ;
@@ -152,6 +153,22 @@ public <T> T visit(PredicateVisitor<T> visitor) {
152153 return visitor .visit (this );
153154 }
154155
156+ @ Override
157+ public boolean equals (Object o ) {
158+ if (o == null || getClass () != o .getClass ()) {
159+ return false ;
160+ }
161+ LeafPredicate that = (LeafPredicate ) o ;
162+ return Objects .equals (transform , that .transform )
163+ && Objects .equals (function , that .function )
164+ && Objects .equals (literals , that .literals );
165+ }
166+
167+ @ Override
168+ public int hashCode () {
169+ return Objects .hash (transform , function , literals );
170+ }
171+
155172 @ Override
156173 public String toString () {
157174 return "LeafPredicate{"
You can’t perform that action at this time.
0 commit comments