Kafka - Advanced Stream Processing
Given the following Kafka Streams processor code snippet, what will be the output stored in the state store after processing the input key-value pairs
("key1", 1) and ("key1", 2)?
KeyValueStore<String, Integer> store = context.getStateStore("countStore");
Integer current = store.get("key1");
if (current == null) current = 0;
store.put("key1", current + value);