org.apache.directory.mavibot.btree

## Interface ValueCursor<V>

- Type Parameters:
    `V` - The type for the stored value
  All Superinterfaces:
    Cursor<V>
  All Known Implementing Classes:
    EmptyValueCursor

      public interface ValueCursor<V>
      extends Cursor<V>

  A Cursor is used to fetch elements in a BTree and is returned by the
  Author:
    Apache Directory Project
  See Also:
    `method. The cursor must be closed when the user is done with it.

    `

- - ### Field Summary

    - ### Fields inherited from interface org.apache.directory.mavibot.btree.Cursor

      `AFTER_LAST, BEFORE_FIRST`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `V` | `next()` Find the next key/value
    `V` | `prev()` Find the previous key/value
    `int` | `size()`

    - ### Methods inherited from interface org.apache.directory.mavibot.btree.Cursor

      `afterLast, beforeFirst, close, hasNext, hasPrev`

- - ### Method Detail

    - #### next

          V next()
                 throws EndOfFileExceededException,
                        IOException

      Find the next key/value
      Returns:
        A Tuple containing the found key and value
      Throws:
        `IOException`
        `EndOfFileExceededException`

    - #### prev

          V prev()
                 throws EndOfFileExceededException,
                        IOException

      Find the previous key/value
      Returns:
        A Tuple containing the found key and value
      Throws:
        `IOException`
        `EndOfFileExceededException`

    - #### size

          int size()

      Returns:
        The number of elements stored in the cursor

Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.