gaoyunhaii commented on a change in pull request #17:
URL: https://github.com/apache/flink-ml/pull/17#discussion_r731534576
##########
File path:
flink-ml-iteration/src/main/java/org/apache/flink/ml/iteration/operator/HeadOperator.java
##########
@@ -129,12 +168,89 @@ public void setup(
public void initializeState(StateInitializationContext context) throws
Exception {
super.initializeState(context);
+ parallelismState =
+ context.getOperatorStateStore()
+ .getUnionListState(
+ new ListStateDescriptor<>("parallelism",
IntSerializer.INSTANCE));
+ OperatorStateUtils.getUniqueElement(parallelismState, "parallelism")
Review comment:
For operator state we only have value state
--
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]