Package db

Interface DBLongIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean delete()
      Delete the last record(s) associated with the last value read via the next or previous methods.
      boolean hasNext()
      Return true if a value is available in the forward direction.
      boolean hasPrevious()
      Return true if a value is available in the reverse direction
      long next()
      Return the next long value.
      long previous()
      Return the previous long value.
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws java.io.IOException
        Return true if a value is available in the forward direction.
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • hasPrevious

        boolean hasPrevious()
                     throws java.io.IOException
        Return true if a value is available in the reverse direction
        Throws:
        java.io.IOException - thrown if an IO error occurs
      • next

        long next()
           throws java.io.IOException
        Return the next long value.
        Throws:
        java.io.IOException - thrown if an IO error occurs
        NoSuchElementException - if the next value is not available.
      • previous

        long previous()
               throws java.io.IOException
        Return the previous long value.
        Throws:
        java.io.IOException - thrown if an IO error occurs
        NoSuchElementException - if the previous value is not available.
      • delete

        boolean delete()
                throws java.io.IOException
        Delete the last record(s) associated with the last value read via the next or previous methods.
        Returns:
        true if record(s) was successfully deleted.
        Throws:
        java.io.IOException - thrown if an IO error occurs.