gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform
Class TransformOp
java.lang.Object
gr.uoa.di.madgik.searchlibrary.operatorlibrary.Unary
gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform.TransformOp
public class TransformOp
- extends Unary
This class performs an xslt 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:
- UoA
|
Method Summary |
URI |
compute()
Initiates the transformation procedure |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformOp
public TransformOp(URI inLocator,
Map<String,String> operatorParameters,
StatsContainer stats)
throws Exception
- Creates a new
TransformOp with the default timeout for the reader
and the writer
- Parameters:
inLocator - The locator of the inputoperatorParameters - operator parameters containing the name of the Field
which contains the payload to apply the transformation onstats - Statistics
- Throws:
Exception
TransformOp
public TransformOp(URI inLocator,
Map<String,String> operatorParameters,
StatsContainer stats,
long timeout,
TimeUnit timeUnit)
throws Exception
- Creates a new
TransformOp with configurable timeout for the
reader and the writer
- Parameters:
inLocator - The locator of the inputoperatorParameters - operator parameters containing the name of the Field
which contains the payload to apply the transformation onstats - Statisticstimeout - The timeout to be used both by the reader and the writertimeUnit - The time unit of the timeout used
- Throws:
Exception
compute
public URI compute()
throws Exception
- Initiates the transformation procedure
- Specified by:
compute in class Unary
- Parameters:
xslt - The xslt to be applied
- Returns:
- The
RSLocator pointing to the produced
org.gcube.searchservice.searchlibrary.resultset.ResultSet
- Throws:
Exception - An unrecoverable for the operation has occured
Copyright © 2013. All Rights Reserved.