Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
linenumberstrue
  //return an iterator for all the records with a key greater (or equal) than "key-x"
  //starting with the smallest record
  KeyValueIterator<String, String> iter = store.range("key-x", null);

  //return an iterator for all the records with a key less (or equal) than "key-x"
  //starting with the smallest record
  KeyValueIterator<String, String> iter = store.range(null, "key-x");

  //return an iterator for all the records with a key greater (or equal) than "key-x"
  //starting with the largest record
  KeyValueIterator<String, String> iter = store.reverseRange("key-x", null);

  //return all the records in the store, equivalent to store.all()
  KeyValueIterator<String, String> iter = store.range(null, null);


Public Interfaces

  • JavaDoc description of org.apache.kafka.streams.state.ReadOnlyKeyValueStore::range

...