This discussion is archived
5 Replies Latest reply: Jul 24, 2013 12:54 AM by fd45989d-55eb-42a0-86a4-98aefee9516e RSS

Clarification of "Ordered traversal" of key/value pairs

Apostolis Newbie
Currently Being Moderated

Hello,

 

Based on the javadoc:

multiGetIterator

Parameters:

direction - specifies the order in which records are returned by the iterator. Only Direction.FORWARD and Direction.REVERSE are supported by this method.

 

Returns:

an iterator that permits an ordered traversal of the descendant key/value pairs.

 

Would it be possible please to provide an example of what you mean by "ordered traversal"? Based on what criteria is the order performed? Is it alphabetically, based on the order the records where inserted or something else? Also, in the example that you will provide, can you also clarify how the Direction parameter alters the result set?

 

Thank you very much,

Apostolis

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points