Package de.julielab.jcore.reader.db
Class DBMultiplierReader.RetrievingThread
- java.lang.Object
-
- java.lang.Thread
-
- de.julielab.jcore.reader.db.DBMultiplierReader.RetrievingThread
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- DBMultiplierReader
protected class DBMultiplierReader.RetrievingThread extends Thread
This class is charged to retrieve batches of document IDs which will be returned for processing afterwards.
The class manages itself the
FetchIdsProactivelyparameter which can be given to the reader. When set tofalse, no ID batches are fetched in advance but are fetched exactly on demand inDBReader.getNextArtifactData().This class is only in use when reading from a subset table.
- Author:
- hellrich/faessler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RetrievingThread()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object[]>getDocumentIds()booleanisConsumed()voidrun()voidsetConsumed(boolean consumed)-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-