EDOBE XDOM PMML Manual do Utilizador Página 84

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 83
84
After inputs and outputs have been created, they can be accessed with
getInputBuf and getOutputBuf (returning the linked CNKBuf objects),
and
getInputBufReader and getOutputBufWriter (returning the
CNKBufReader or CNKBufWriter objects for the link). These methods
check the validity of their index argument: if the index is invalid, they
will return
NULL.
CNKProc::
virtual void setNumRows(long val);
virtual long getNumRows();
virtual void setOutputNumRows(long val);
virtual long getOutputNumRows();
CNKProc
maintains two properties, the maximum number of rows that
will be requested from any of its inputs (accessed with
set/
getNumRows
), and the maximum number of rows spaces that will be
requested from any of its outputs (accessed with
set/
getOutputNumRows
). These properties should be set when a CNKProc is
created. The values of these properties are used by
CNKBuf::getMinRowsToAvoidDeadlock() and
CNKBuf::isDeadlockPossible() to determine whether the CNKBuf is
large enough to avoid deadlock during pipeline execution.
Many
CNKProc objects take an input chunk, process it, and write an
output chunk with the same number of rows. In cases like these, the
getOutputNumRows value should be the same as the getNumRows value.
To handle this case more easily, if the
"OutputNumRows" value is less
than zero (the default),
getOutputNumRows() will simply return the
value of
getNumRows(). Therefore, many CNKProc objects will only
need to call
setNumRows.
CNKProc::
virtual void execute();
virtual int isReady();
virtual void setDone(int val);
virtual int isDone();
These methods determine how the pipeline engine executes the
CNKBuf. Derived classes redefine CNKProc::execute(), and possibly
the other methods, to implement their particular data processing
behavior. This set of methods is deliberately small, to make it easier
to define new components.
Vista de página 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 97 98

Comentários a estes Manuais

Sem comentários