Package db

Interface DBFieldIterator

All Known Implementing Classes:
AddressIndexPrimaryKeyIterator

public interface DBFieldIterator
DBFieldIterator provides the ability to iterate over Field values within a table.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Delete the last record(s) associated with the last Field value read via the next or previous methods.
    boolean
    Return true if a Field is available in the forward direction.
    boolean
    Return true if a Field is available in the reverse direction
    Return the next Field value or null if one is not available.
    Return the previous Field value or null if one is not available.
  • Method Details

    • hasNext

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

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

      Field next() throws IOException
      Return the next Field value or null if one is not available.
      Throws:
      IOException - thrown if an IO error occurs
    • previous

      Field previous() throws IOException
      Return the previous Field value or null if one is not available.
      Throws:
      IOException - thrown if an IO error occurs
    • delete

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