1

I have a KeyValueStore of type KeyValueStore>. I don't know the range of the keys. Is there any way I can iterate through the whole keyvaluestore in samza? Thanks

helen
  • 73
  • 2
  • 6

1 Answers1

4

Sure. Use the all() method on the KeyValueStore instance. That will return an iterator which you can use to scan the whole store.

http://samza.apache.org/learn/documentation/0.12/api/javadocs/org/apache/samza/storage/kv/KeyValueStore.html#all--

JMakes
  • 61
  • 1
  • 2