gr.uoa.di.madgik.searchlibrary.operatorlibrary.except
Class ExceptWorker

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.except.ExceptWorker
All Implemented Interfaces:
Runnable

public class ExceptWorker
extends Thread

Helper thread class used to perform the set difference operation

Author:
UoA

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
ExceptWorker(gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, gr.uoa.di.madgik.grs.reader.IRecordReader<gr.uoa.di.madgik.grs.record.Record> leftReader, gr.uoa.di.madgik.grs.reader.IRecordReader<gr.uoa.di.madgik.grs.record.Record> rightReader, String leftKeyFieldName, String rightKeyFieldName, long timeout, TimeUnit timeUnit, StatsContainer stats)
          Creates a new ExceptWorker
 
Method Summary
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptWorker

public ExceptWorker(gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
                    gr.uoa.di.madgik.grs.reader.IRecordReader<gr.uoa.di.madgik.grs.record.Record> leftReader,
                    gr.uoa.di.madgik.grs.reader.IRecordReader<gr.uoa.di.madgik.grs.record.Record> rightReader,
                    String leftKeyFieldName,
                    String rightKeyFieldName,
                    long timeout,
                    TimeUnit timeUnit,
                    StatsContainer stats)
Creates a new ExceptWorker

Parameters:
writer - The IRecordWriter to write records to
leftReader - The reader for the left input
rightReader - The reader for the right input
leftKeyFieldName - The name of the Field originating from the left IRecordReader and containing the key to base the operation on
rightKeyFieldName - The name of the Field originating from the right IRecordReader and containing the key to base the operation on
timeout - The timeout to be used both by the IRecordReaders and the IRecordWriter
timeUnit - The time unit of the timeout that will be used
stats - statistics
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()


Copyright © 2013. All Rights Reserved.