gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform
Class ScriptOp

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.Unary
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform.ScriptOp

public class ScriptOp
extends Unary

This class performs applies script transformation on the records that it receives as input and produces a new set of records as output, each one of them containing the transformed result

Author:
jgerbe

Field Summary
 
Fields inherited from class gr.uoa.di.madgik.searchlibrary.operatorlibrary.Unary
inLocator, operatorParameters, stats, timeout, TimeoutDef, timeUnit, TimeUnitDef
 
Constructor Summary
ScriptOp(URI inLocator, Map<String,String> operatorParameters, StatsContainer stats)
          Creates a new ScriptOp with the default timeout for the reader and the writer
ScriptOp(URI inLocator, Map<String,String> operatorParameters, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Creates a new ScriptOp with configurable timeout for the reader and the writer
 
Method Summary
 URI compute()
          Initiates the transformation procedure
static File decompressToFile(byte[] zipped)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptOp

public ScriptOp(URI inLocator,
                Map<String,String> operatorParameters,
                StatsContainer stats)
         throws Exception
Creates a new ScriptOp with the default timeout for the reader and the writer

Parameters:
inLocator - The locator of the input
operatorParameters - operator parameters containing the name of the script which will be applied apply the transformation
stats - Statistics
Throws:
Exception

ScriptOp

public ScriptOp(URI inLocator,
                Map<String,String> operatorParameters,
                StatsContainer stats,
                long timeout,
                TimeUnit timeUnit)
         throws Exception
Creates a new ScriptOp with configurable timeout for the reader and the writer

Parameters:
inLocator - The locator of the input
operatorParameters - operator parameters containing the name of the script which will be applied apply the transformation
stats - Statistics
timeout - The timeout to be used both by the reader and the writer
timeUnit - The time unit of the timeout used
Throws:
Exception
Method Detail

compute

public URI compute()
            throws Exception
Initiates the transformation procedure

Specified by:
compute in class Unary
Returns:
The RSLocator pointing to the produced org.gcube.searchservice.searchlibrary.resultset.ResultSet
Throws:
Exception - An unrecoverable for the operation has occurred

decompressToFile

public static File decompressToFile(byte[] zipped)


Copyright © 2013. All Rights Reserved.