Interface DirectedIterator<T>

Type Parameters:
T - the type of the component, i.e., a key or record
All Known Subinterfaces:
DirectedLongKeyIterator, DirectedRecordIterator
All Known Implementing Classes:
AbstractDirectedLongKeyIterator, AbstractDirectedRecordIterator, BackwardLongKeyIterator, BackwardRecordIterator, ForwardLongKeyIterator, ForwardRecordIterator

public interface DirectedIterator<T>
An iterator over some component of a Table
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The direction of iteration
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Delete the current record
    boolean
    Check if the table has another record
    Get the component of the next record
  • Method Details

    • hasNext

      boolean hasNext() throws IOException
      Check if the table has another record
      Returns:
      true if so
      Throws:
      IOException - if the table cannot be read
    • next

      T next() throws IOException
      Get the component of the next record
      Returns:
      the component
      Throws:
      IOException - if the table cannot be read
    • delete

      boolean delete() throws IOException
      Delete the current record
      Returns:
      true if successful
      Throws:
      IOException - if the table cannot be accessed