zhijiangW commented on a change in pull request #11351: [FLINK-16404][runtime] 
Avoid caching buffers for blocked input channels before barrier alignment
URL: https://github.com/apache/flink/pull/11351#discussion_r406645738
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/Buffer.java
 ##########
 @@ -227,4 +224,58 @@
         * Tags the buffer as compressed or uncompressed.
         */
        void setCompressed(boolean isCompressed);
+
+       /**
+        * Gets the type of data this buffer represents.
+        */
+       DataType getDataType();
+
+       /**
+        * Sets the type of data this buffer represents.
+        */
+       void setDataType(DataType dataType);
+
+       /**
+        * Used to identify the type of data contained in {@link Buffer}.
+        */
+       enum DataType {
+               /**
+                * DATA_BUFFER indicates that this buffer represents a 
non-event data buffer.
+                */
+               DATA_BUFFER(true),
+
+               /**
+                * EXACTLY_ONCE_CHECKPOINT_BARRIER indicates that this buffer 
represents a
+                * serialized checkpoint barrier of exactly once checkpoint 
mode.
+                */
+               EXACTLY_ONCE_CHECKPOINT_BARRIER(false),
+
+               /**
+                * UNKNOWN_EVENT indicates this buffer represents serialized 
data of other
 
 Review comment:
   The descriptions should also be adjusted.

----------------------------------------------------------------
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