lowka commented on code in PR #3187:
URL: https://github.com/apache/ignite-3/pull/3187#discussion_r1491417234


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/PartitionWithConsistencyToken.java:
##########
@@ -55,4 +57,29 @@ public int partId() {
     public long enlistmentConsistencyToken() {
         return enlistmentConsistencyToken;
     }
+
+    /** {@inheritDoc} */
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) {
+            return true;
+        }
+        if (o == null || getClass() != o.getClass()) {
+            return false;
+        }
+        PartitionWithConsistencyToken that = (PartitionWithConsistencyToken) o;
+        return partId == that.partId && enlistmentConsistencyToken == 
that.enlistmentConsistencyToken;
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public int hashCode() {
+        return Objects.hash(partId, enlistmentConsistencyToken);
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return partId + ":" + enlistmentConsistencyToken;

Review Comment:
   Same as `NodeWithConsistencyToken`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to