stevenzwu commented on a change in pull request #17111:
URL: https://github.com/apache/flink/pull/17111#discussion_r701358681
##########
File path:
flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/hybrid/HybridSourceEnumeratorState.java
##########
@@ -21,18 +21,25 @@
/** The state of hybrid source enumerator. */
public class HybridSourceEnumeratorState {
private final int currentSourceIndex;
- private final Object wrappedState;
+ private byte[] wrappedStateBytes;
+ private final int wrappedStateSerializerVersion;
- HybridSourceEnumeratorState(int currentSourceIndex, Object wrappedState) {
+ HybridSourceEnumeratorState(
+ int currentSourceIndex, byte[] wrappedStateBytes, int
serializerVersion) {
this.currentSourceIndex = currentSourceIndex;
- this.wrappedState = wrappedState;
+ this.wrappedStateBytes = wrappedStateBytes;
+ this.wrappedStateSerializerVersion = serializerVersion;
}
public int getCurrentSourceIndex() {
return this.currentSourceIndex;
}
- public Object getWrappedState() {
- return wrappedState;
+ public byte[] getWrappedState() {
+ return wrappedStateBytes;
+ }
+
+ public int wrappedStateSerializerVersion() {
Review comment:
nit: `wrappedStateSerializerVersion` ->
`getWrappedStateSerializerVersion` just to be consistent of Flink 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]