Versions Compared

Key

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

Table of Contents

Status

Current state: Under DiscussionImplemented (for 3.1.0)

Discussion thread: here 

JIRA: KAFKA-4063

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

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

...