Xeli commented on a change in pull request #6594: [FLINK-9311] [pubsub] Added 
PubSub source connector with support for checkpointing (ATLEAST_ONCE)
URL: https://github.com/apache/flink/pull/6594#discussion_r263999310
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/SerializedCheckpointData.java
 ##########
 @@ -140,20 +145,21 @@ public int getNumIds() {
        // 
------------------------------------------------------------------------
 
        /**
-        * De-serializes an array of SerializedCheckpointData back into an 
ArrayDeque of element checkpoints.
+        * De-serializes an array of SerializedCheckpointData back into
+        * a Map of element checkpoints with the checkpointId as key.
         *
         * @param data The data to be deserialized.
         * @param serializer The serializer used to deserialize the data.
         * @param <T> The type of the elements.
-        * @return An ArrayDeque of element checkpoints.
+        * @return A Map of element checkpoints.
         *
         * @throws IOException Thrown, if the serialization fails.
         */
-       public static <T> ArrayDeque<Tuple2<Long, Set<T>>> toDeque(
+       public static <T> Map<Long, Set<T>> toDeque(
 
 Review comment:
   Yeah good catch, changed it to `toMap()`

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to