igalshilman opened a new pull request #17: [FLINK-15954] Add a PersistedTable 
to the SDK
URL: https://github.com/apache/flink-statefun/pull/17
 
 
   This PR introduces another persisted state type to the SDK, named a 
PersistedTable.
   A persisted table is a map/dictionary/an association between keys -> values.
   Example usage:
   ```
   class MyFunc implements StatefulFunction {
   
      @Persisted
      PersistedTable<String, Integer> words = PersistedTable.of("words", 
String.class, Integer.class);
   
    
    @Override
     public void invoke(Context context, Object input) {
          Integer count = words.get((String) input);
          words.set((String)input, inc(count));       
     }   
   
   ...
   }
   
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to