Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ScriptWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader,
String script,
String schema,
StatsContainer stats,
long timeout,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected URI |
getLocator() |
void |
run()
Performs the transform operation
|
activeCount, checkAccess, clone, 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, yieldpublic ScriptWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader, String script, String schema, StatsContainer stats, long timeout, TimeUnit timeUnit) throws Exception
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 appliedscript - The script to apply on each record fieldschema - schema that describes new result setstats - Statisticstimeout - The timeout which will be used both by the reader and the
writertimeUnit - The unit of the timeout which will be usedException - if script is not initialised rightpublic void run()
protected URI getLocator() throws InterruptedException, gr.uoa.di.madgik.grs.writer.GRS2WriterException
InterruptedExceptiongr.uoa.di.madgik.grs.writer.GRS2WriterExceptionCopyright © 2017. All Rights Reserved.