gr.uoa.di.madgik.searchlibrary.operatorlibrary.select
Class SelectWorker<T extends gr.uoa.di.madgik.grs.record.Record>

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.select.SelectWorker<T>
All Implemented Interfaces:
Runnable

public class SelectWorker<T extends gr.uoa.di.madgik.grs.record.Record>
extends Thread


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
SelectWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader, gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, String logicalExpressions, Integer[] mask, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Creates a new SelectWorker which will perform the background filter operation
SelectWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader, gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, String logicalExpressions, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Creates a new SelectWorker which will perform the background filter operation
 
Method Summary
 void run()
          Performs the filter operation
 
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

SelectWorker

public SelectWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader,
                    gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
                    String logicalExpressions,
                    StatsContainer stats,
                    long timeout,
                    TimeUnit timeUnit)
Creates a new SelectWorker which will perform the background filter operation

Parameters:
reader - The reader to consume record from
writer - The writer which will be used for authoring
logicalExpressions - The name of the Field containing the payload on which the filtering will be applied
stats - Statistics
timeout - The timeout to be used both by the reader and the writer
timeUnit - The unit of the timeout to be used

SelectWorker

public SelectWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader,
                    gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
                    String logicalExpressions,
                    Integer[] mask,
                    StatsContainer stats,
                    long timeout,
                    TimeUnit timeUnit)
Creates a new SelectWorker which will perform the background filter operation

Parameters:
reader - The reader to consume record from
writer - The writer which will be used for authoring
logicalExpressions - The name of the Field containing the payload on which the filtering will be applied
mask - filter mask to be applied
stats - Statistics
timeout - The timeout to be used both by the reader and the writer
timeUnit - The unit of the timeout to be used
Method Detail

run

public void run()
Performs the filter operation

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2013. All Rights Reserved.