29
/**
* Very simple implementation of engine node copying each
* input to the corresponding output. Assumes the same
* number of inputs as outputs. To keep this short, no
* error checking is performed.
*/
public class FirstCopyEngineNode extends EngineNode
implements CNKProcJavaTransformExec {
/**
* Empty constructor just uses the super method.
*/
public FirstCopyEngineNode() {
}
/**
* Boilerplate for specifying this class provides the
* execute() method.
*/
public CNKProc procCreate() throws Exception {
CNKProcJavaTransform proc = new CNKProcJavaTransform();
proc.setExecObject(this);
return(proc);
}
/**
* Passes the input column name/type information as the
* output information.
*/
public XTMetaData calculateOutputMetaData(int outputNum)
{
return (XTMetaData)getInputMetaData(outputNum).clone();
}
/**
* Copies the two inputs to the two outputs when the node
Komentarze do niniejszej Instrukcji