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


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/RowHandler.java:
##########
@@ -104,4 +99,39 @@ interface RowFactory<RowT> {
          */
         RowT create(InternalTuple tuple);
     }
+
+    /**
+     * A builder to create rows. It uses the schema provided by an instance of 
row factory that created it.
+     *
+     * <pre>
+     *     // Create a row builder
+     *     var rowBuilder = rowFactory.rowBuilder();
+     *
+     *     // Call newRow() to start construction of a new row.
+     *     rowBuilder.newRow();
+     *     ...
+     *     // Call build() after all fields have been set.
+     *     var row1 = rowBuilder.build();
+     * </pre>
+     */
+    interface RowBuilder<RowT> {
+
+        /**
+         * Initiates construction of a new row. This method should be called 
prior to the first call to {@link #addField(Object)}.
+         *
+         * @return this.
+         */
+        RowBuilder<RowT> newRow();
+
+        /**
+         * Add a field to the current row.
+         *
+         * @param value Field value.
+         * @return this.
+         */
+        RowBuilder<RowT> addField(Object value);

Review Comment:
   Thanks. Fixed.



-- 
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-unsubscr...@ignite.apache.org

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

Reply via email to