Class MVCursorIterator

All Implemented Interfaces:
Iterator<KVPair>

public class MVCursorIterator extends AbstractIterator<KVPair>
Converts a Cursor from an Iterator<byte[]> with inclusive upper bound into an Iterator<KVPair> with exclusive upper bound.
  • Constructor Details

    • MVCursorIterator

      public MVCursorIterator(org.h2.mvstore.Cursor<byte[],byte[]> cursor, byte[] maxKey, boolean reverse)
      Constructor.
      Parameters:
      cursor - the underlying Cursor
      maxKey - maximum key (exclusive), or null for no maximum
      reverse - true if cursor iterates keys in descending order
      Throws:
      IllegalArgumentException - if cursor is null
  • Method Details