gr.uoa.di.madgik.searchlibrary.operatorlibrary.merge
Class ReaderScan
java.lang.Object
java.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.merge.ReaderScan
- All Implemented Interfaces:
- Runnable
public class ReaderScan
- extends Thread
Helper thread class used to iterate over a ResultSet
to retrieve the local payload parts and notify the merging thread when they are available
- Author:
- UoA
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ReaderScan
public ReaderScan(Vector<ReaderHolder> readers,
int index,
BlockingQueue<RecordBufferEntry> buf,
Queue<EventEntry> events,
long timeout,
TimeUnit timeUnit,
String uid,
OperationMode operationMode)
- Creates a new
ReaderScan working on some input ForwardReader
- Parameters:
readers - The ReaderHolder vector with the available input sourcesindex - The index of the ReaderHolder this thread should operate onbuf - The buffer to place the records read along with the id of the reader, which is equal to indexevents - A queue to place the events read along with the id of the reader, which is equal to indextimeout - The timeout to usetimeUnit - The timeout unit to useuid - A unique identifier for this operationoperationMode - The operation mode to use
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
- See Also:
Runnable.run()
poll
public Pair<RecordBufferEntry,Integer> poll()
peek
public Pair<RecordBufferEntry,Integer> peek()
Copyright © 2013. All Rights Reserved.