gr.uoa.di.madgik.searchlibrary.operatorlibrary.merge
Class MergeWorker
java.lang.Object
java.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.merge.MergeWorker
- All Implemented Interfaces:
- Runnable
public class MergeWorker
- extends Thread
This Thread class that populates the output RecordWriter in the background
- 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 |
MergeWorker
public MergeWorker(Vector<ReaderHolder> readers,
StatsContainer stats,
OperationMode operationMode,
long timeout,
TimeUnit timeUnit,
String uid)
- Creates a new
MergeWorker
- Parameters:
readers - Vector holding info on the input ResultSetstats - StatisticsoperationMode - The operation mode. One of OperationMode.FIFO, OperationMode.FirstAvailable and OperationMode.Sorttimeout - The timeout that will be used by the RecordWriter and all ForwardReaderstimeUnit - The timeout unit that will be used by the RecordWriter and all ForwardReadersuid - A unique identifier for this operation
setWriter
public void setWriter(gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.Record> writer)
- Parameters:
writer - The output RecordWriter to place the records to
setRecordDefinitionOffsets
public void setRecordDefinitionOffsets(int[] recordDefinitionOffsets)
getWriterInitSyncObject
public Object getWriterInitSyncObject()
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
- See Also:
Runnable.run()
Copyright © 2013. All Rights Reserved.