Package db

Class KeyToRecordIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      boolean delete()
      Delete the last Record read via the next or previous methods.
      boolean hasNext()
      Return true if a Record is available in the forward direction.
      boolean hasPrevious()
      Return true if a Record is available in the reverse direction
      MODIFIEDDBRecord next()
      Return the nexy Record or null if one is not available.
      MODIFIEDDBRecord previous()
      Return the previous Record or null if one is not available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyToRecordIterator

        public KeyToRecordIterator​(Table table,
                                   DBFieldIterator keyIter)
        Construct a record iterator from a secondary index key iterator.
        Parameters:
        keyIter - key iterator.
    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws java.io.IOException
        Description copied from interface: RecordIterator
        Return true if a Record is available in the forward direction.
        Specified by:
        hasNext in interface RecordIterator
        Throws:
        java.io.IOException - thrown if an IO error occurs
        See Also:
        RecordIterator.hasNext()
      • hasPrevious

        public boolean hasPrevious()
                            throws java.io.IOException
        Description copied from interface: RecordIterator
        Return true if a Record is available in the reverse direction
        Specified by:
        hasPrevious in interface RecordIterator
        Throws:
        java.io.IOException - thrown if an IO error occurs
        See Also:
        RecordIterator.hasPrevious()
      • next MODIFIED

        return type: Record → DBRecord
        -db.Record next() throws IOException
        +db.DBRecord next() throws IOException
        public DBRecord next()
                      throws java.io.IOException
        Description copied from interface: RecordIterator
        Return the nexy Record or null if one is not available.
        Specified by:
        next in interface RecordIterator
        Throws:
        java.io.IOException - thrown if an IO error occurs
        See Also:
        RecordIterator.next()
      • previous MODIFIED

        return type: Record → DBRecord
        -db.Record previous() throws IOException
        +db.DBRecord previous() throws IOException
        public DBRecord previous()
                          throws java.io.IOException
        Description copied from interface: RecordIterator
        Return the previous Record or null if one is not available.
        Specified by:
        previous in interface RecordIterator
        Throws:
        java.io.IOException - thrown if an IO error occurs
        See Also:
        RecordIterator.previous()
      • delete

        public boolean delete()
                       throws java.io.IOException
        Description copied from interface: RecordIterator
        Delete the last Record read via the next or previous methods.
        Specified by:
        delete in interface RecordIterator
        Returns:
        true if record was successfully deleted.
        Throws:
        java.io.IOException - thrown if an IO error occurs.
        See Also:
        RecordIterator.delete()