EDOBE XDOM PMML Manual de usuario Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
26
Output Meta
Data
The calculateOutputMetaData() method is called to determine the
names and types of the output columns. The pipeline takes care of
computing the numerical summaries.
This method will often use
getInputMetaData() to find out about the
inputs and
getNodeProperties() to find out about the properties.
This information is then used to determine the output information.
This method may be called before the data has been read, and should
be able to handle this case properly.
CNKProc
Objects
The CNKProc object provides the connection to the pipeline. The
pipeline can be thought of as having a series of procedures (procs)
connected by buffers. Each procedure is represented by a
CNKProc
object. This object has methods for obtaining property values, getting
data from input buffers, and writing data to output buffers. Running a
component consists of the pipeline repeatedly telling the
CNKProc
object to access the input buffers and use the contents of the buffers to
create new values and write them to the output buffers.
Java Procs If the computation is to be performed in Java, a
CNKProcJavaTransform object is used. This provides a wide variety of
methods for marshalling data back and forth between the C++-level
pipeline code and Java code.
The
setExecObject() method of this object is used to indicate a Java
class implementing the
CNKProcJavaTransformExec interface to
perform the actual computation. This interface has a single
execute()
method that is called once for each block of data.
public void execute(CNKProcJavaTransform proc);
Often the EngineNode will itself implement this interface, with the
computation for each block performed by its
execute() method.
A typical
procCreate() call for this case is of the form:
public CNKProc procCreate() throws Exception {
CNKProcJavaTransform proc = new CNKProcJavaTransform();
proc.setExecObject(this);
return(proc);
}
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 97 98

Comentarios a estos manuales

Sin comentarios