Class DBReader.RetrievingThread

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    DBReader

    protected class DBReader.RetrievingThread
    extends Thread

    This class is charged with retrieving batches of document IDs and documents while previously fetched documents are in process.

    The class manages the FetchIdsProactively parameter which can be given to the reader. When set to false, no ID batches are fetched in advance but are fetched exactly on demand in DBReader.getNextArtifactData().

    This class is only in use when reading from a subset table.

    Author:
    hellrich/faessler
    • Constructor Detail

      • RetrievingThread

        public RetrievingThread()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • getDocuments

        public de.julielab.costosys.dbconnection.DBCIterator<byte[][]> getDocuments()