gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform
Class TransformWorker<T extends gr.uoa.di.madgik.grs.record.Record>
java.lang.Object
java.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform.TransformWorker<T>
- All Implemented Interfaces:
- Runnable
public class TransformWorker<T extends gr.uoa.di.madgik.grs.record.Record>
- extends Thread
|
Constructor Summary |
TransformWorker(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 payloadFieldName,
String xslt,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
|
|
Method Summary |
void |
run()
Performs the transform 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 |
TransformWorker
public TransformWorker(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 payloadFieldName,
String xslt,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
- Parameters:
reader - The IRecordReader to consume records fromwriter - The IRecordWriter which will be used to write the outputpayloadFieldName - The name of the Field containing the payload on which the transformation will be appliedxslt - The XSLT to apply on each record fieldstats - Statisticstimeout - The timeout which will be used both by the reader and the writertimeUnit - The unit of the timeout which will be used
run
public void run()
- Performs the transform operation
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Copyright © 2013. All Rights Reserved.