EDOBE XDOM PMML Manuel d'utilisateur Page 33

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 98
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 32
33
Engine Node The engine node corresponding to a C++ proc differs from the
version for the straight Java implementation in a variety of ways:
The class does not implement
CNKProcJavaTransformExec.
•The
procCreate() method creates a Java class corresponding
to the C++ proc rather than registering the current class.
•There is no
execute() method.
It is similar in its imports, constructor, and the
calculateOutputMetaData() method.
The notable aspect of this code is the construction of the
CNKProcSecondCopy object in procCreate(). The rest of the code is
familiar from the previous example.
The
SecondCopyEngineNode.java file contains:
import com.insightful.miner.*;
import com.insightful.cnkjava.*;
/**
* Very simple implementation of engine node copying each
* input to the corresponding output using a C++ proc.
*/
public class SecondCopyEngineNode extends EngineNode {
/**
* Empty constructor just uses the super method.
*/
public SecondCopyEngineNode() {
}
/**
* Create the CNKProcSecondCopy object.
*/
public CNKProc procCreate() throws Exception {
CNKProcSecondCopy proc = new CNKProcSecondCopy();
return(proc);
}
Vue de la page 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 97 98

Commentaires sur ces manuels

Pas de commentaire