lindong28 commented on code in PR #21621:
URL: https://github.com/apache/flink/pull/21621#discussion_r1066536879
##########
flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/output/BootstrapStreamTask.java:
##########
@@ -82,16 +86,14 @@ protected void init() throws Exception {
mainOperator = mainOperatorAndTimeService.f0;
mainOperator.initializeState(createStreamTaskStateInitializer());
mainOperator.open();
+ recordProcessor =
RecordProcessorUtils.getRecordProcessor(mainOperator);
}
@Override
protected void processInput(MailboxDefaultAction.Controller controller)
throws Exception {
StreamElement element = input.take();
if (element.isRecord()) {
- StreamRecord<IN> streamRecord = element.asRecord();
-
- mainOperator.setKeyContextElement1(streamRecord);
- mainOperator.processElement(streamRecord);
+ recordProcessor.accept(element.asRecord());
Review Comment:
Do you think we need to add `hasKeyContext1()` and `hasKeyContext2()` to
`StateBootstrapWrapperOperator`?
--
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]