You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "AMashenkov (via GitHub)" <gi...@apache.org> on 2023/04/11 09:06:20 UTC

[GitHub] [ignite-3] AMashenkov commented on a diff in pull request #1927: IGNITE-18899 Refactor ClientTuple to wrap BinaryTuple

AMashenkov commented on code in PR #1927:
URL: https://github.com/apache/ignite-3/pull/1927#discussion_r1162517279


##########
modules/client/src/test/java/org/apache/ignite/client/ClientTupleTest.java:
##########
@@ -353,13 +270,36 @@ public void testTupleEqualityCompatibility() {
         assertEquals(clientTuple.hashCode(), tuple.hashCode());
     }
 
-    private static ClientTuple getBuilder() {
-        return new ClientTuple(SCHEMA);
+    private static Tuple getTuple() {

Review Comment:
   ```suggestion
       private static Tuple createTuple() {
   ```



##########
modules/client/src/test/java/org/apache/ignite/client/ClientTupleTest.java:
##########
@@ -353,13 +270,36 @@ public void testTupleEqualityCompatibility() {
         assertEquals(clientTuple.hashCode(), tuple.hashCode());
     }
 
-    private static ClientTuple getBuilder() {
-        return new ClientTuple(SCHEMA);
+    private static Tuple getTuple() {
+        var binTupleBuf = new BinaryTupleBuilder(SCHEMA.columns().length, false)
+                .appendLong(3L)
+                .appendString("Shirt")
+                .build();
+
+        var binTuple = new BinaryTupleReader(SCHEMA.columns().length, binTupleBuf);
+
+        return new ClientTuple(SCHEMA, binTuple, 0, SCHEMA.columns().length);
     }
 
-    private static Tuple getTuple() {
-        return new ClientTuple(SCHEMA)
-                .set("id", 3L)
-                .set("name", "Shirt");
+    private static ClientTuple getFullSchemaTuple() {

Review Comment:
   ```suggestion
       private static ClientTuple createFullSchemaTuple() {
   ```



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org