Interface DirectedRecordIterator

All Superinterfaces:
DirectedIterator<DBRecord>
All Known Implementing Classes:
AbstractDirectedRecordIterator, BackwardRecordIterator, ForwardRecordIterator

public interface DirectedRecordIterator extends DirectedIterator<DBRecord>
An iterator over records of a table
  • Field Details

  • Method Details

    • getIterator

      static DirectedRecordIterator getIterator(Table table, KeySpan keySpan, DirectedIterator.Direction direction) throws IOException
      Get an iterator over the table, restricted to the given range of keys, in the given direction
      Parameters:
      table - the table
      keySpan - the limited range
      direction - the direction
      Returns:
      the iterator
      Throws:
      IOException - if the table cannot be read
    • getIndexIterator

      static DirectedRecordIterator getIndexIterator(Table table, int columnIndex, FieldSpan fieldSpan, DirectedIterator.Direction direction) throws IOException
      Get an iterator over the table using a given index, restricted to the given range of values, in the given direction
      Parameters:
      table - the table
      columnIndex - the column number of the index
      fieldSpan - the limited range
      direction - the direction
      Returns:
      the iterator
      Throws:
      IOException - if the table cannot be read