34
/**
* Passes the input column name/type information as the
* output information.
*/
public XTMetaData calculateOutputMetaData(int outputNum)
{
return (XTMetaData)getInputMetaData(outputNum).clone();
}
}
Java CNKProc The Java class extending CNKProc has two main responsibilities:
• Indicate the name and location of the C++ class.
• Provide a mechanism for exchanging property values with the
C++ class.
Since we have no properties to exchange, our class will just perform
the first task. The
createPeerObject() method indicates that our
C++ class will be named
CNKProcCppSecondCopy, and it will be in the
cnkcopy C++ library. The
CNKProcSecondCopy.java file contains:
import com.insightful.cnkjava.*;
/**
* Java class corresponding to C++ proc for Copy Columns
* example.
*/
public class CNKProcSecondCopy extends CNKProc {
/**
* Default constructor does nothing.
*/
public CNKProcSecondCopy() {
}
/**
* Specify that the C++ class is named
* CNKProcCppSecondCopy and that it is in the cnkcopy
Comentarios a estos manuales