Class DBCThreadedIterator<E>

  • Type Parameters:
    E -
    All Implemented Interfaces:
    Iterator<E>
    Direct Known Subclasses:
    ThreadedColumnsIterator, ThreadedColumnsToRetrieveIterator

    public abstract class DBCThreadedIterator<E>
    extends DBCIterator<E>

    This iterator class employs multiple Threads for database queries. While the iterator offers access to retrieved values, additional values are concurrently retrieved from the database by another thread.

    The iterator uses the Exchanger class to communicate between threads.

    Author:
    hellrich/faessler
    • Constructor Detail

      • DBCThreadedIterator

        public DBCThreadedIterator()
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public E next()
      • remove

        public void remove()
        unsupported
      • update

        protected void update()
      • close

        public abstract void close()
        Description copied from class: DBCIterator
        Frees resources occupied by this iterator (e.g. database connections).
        Specified by:
        close in class DBCIterator<E>