EDOBE XDOM PMML Instrukcja Użytkownika Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
}
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag