JingsongLi commented on a change in pull request #8029: [FLINK-11898] 
[table-planner-blink] Support code generation for all Blink built-in functions 
and operators
URL: https://github.com/apache/flink/pull/8029#discussion_r268526873
 
 

 ##########
 File path: 
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/util/SegmentsUtil.java
 ##########
 @@ -987,4 +1010,82 @@ private static void setTwoByteSlowly(
                segment.put(segOffset, (byte) (LITTLE_ENDIAN ? b2 : b1));
        }
 
+       /**
+        * Copy bytes of segments to output view.
+        * Note: It just copies the data in, not include the length.
+        *
+        * @param segments source segments
+        * @param offset offset for segments
+        * @param sizeInBytes size in bytes
+        * @param target target output view
+        */
+       public static void copyBytesToView(MemorySegment[] segments, int offset,
 
 Review comment:
   `CopyToView` already exists

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to