Type Parameters:
T -
All Superinterfaces:
AutoCloseable, Closeable, Iterator<T>
All Known Implementing Classes:
DelegatingCursor

public interface Cursor<T> extends Iterator<T>, Closeable
Cursor provides a lazy loading abstraction for fetching documents.
  • Method Details

    • getCursorMark

      @Nullable Serializable getCursorMark()
      Get the current set cursorMark
      Returns:
    • open

      Cursor<T> open()
      Opens the cursor.
      Only Cursor.State.READY cursors can be opened.
      Returns:
    • getPosition

      long getPosition()
      Returns:
      the current position starting a zero.
    • isOpen

      boolean isOpen()
      Returns:
      true if Cursor.State.OPEN
    • isClosed

      boolean isClosed()
      Returns:
      true if Cursor.State.CLOSED