You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/07/20 02:22:06 UTC

[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #2214: StateT of SeaTunnelSource should extend `Serializable`

ashulin commented on code in PR #2214:
URL: https://github.com/apache/incubator-seatunnel/pull/2214#discussion_r925101529


##########
seatunnel-api/src/main/java/org/apache/seatunnel/api/source/SeaTunnelSource.java:
##########
@@ -94,6 +94,8 @@ SourceSplitEnumerator<SplitT, StateT> restoreEnumerator(SourceSplitEnumerator.Co
      *
      * @return enumerator state serializer.
      */
-    Serializer<StateT> getEnumeratorStateSerializer();
+    default Serializer<StateT> getEnumeratorStateSerializer(){
+        return new DefaultSerializer<>();
+    }

Review Comment:
   ```suggestion
       default Serializer<StateT> getEnumeratorStateSerializer() {
           return new DefaultSerializer<>();
       }
   ```
   Keep the code style.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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