klion26 commented on a change in pull request #9889: [FLINK-14355] [docs] 
Example code in state processor API docs doesn't compile
URL: https://github.com/apache/flink/pull/9889#discussion_r334730113
 
 

 ##########
 File path: docs/dev/libs/state_processor_api.md
 ##########
 @@ -238,9 +238,11 @@ This means if an operator contains a stateful process 
function such as:
 public class StatefulFunctionWithTime extends KeyedProcessFunction<Integer, 
Integer, Void> {
  
    ValueState<Integer> state;
- 
+   ValueStateDescriptor<Integer> stateDescriptor;
+   
    @Override
    public void open(Configuration parameters) {
+         stateDescriptor = new ValueStateDescriptor<>("state", Types.INT);
 
 Review comment:
   Nit: can we align these two lines.
   In other word, do we need to align all the StateDescriptor creating?

----------------------------------------------------------------
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