EDOBE XDOM PMML Manual do Utilizador Página 90

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 89
90
Releasing rows and performing these other tasks can often by done
by calling
CNKProc::executeReleaseRows(long rows), passing the
number of rows to release. This utility method calls
releaseRows(rows) on all inputs and outputs, releasing the specified
number of rows, and calls
incrementRowsDone(rows). If any of the
inputs have been totally consumed
(inbuf->getEOF() && inbuf->getRowsReady()==0)
then it is assumed that the CNKProc is done: the setEOF() method is
called on all of the outputs, and
setDone(true) is called on the
CNKProc. If none of the inputs have been totally consumed,
setRequestRows(getNumRows()) is called on all of the inputs, and
setRequestRows(getOutputNumRows()) on all of the outputs, to
prepare for the next chunk.
The isReady() Method
Most of the time, it is not necessary to redefine
isReady(). The
default implementation of
CNKProc::isReady() returns true (non-
zero) if the
CNKProc is not done (according to isDone()), and it does
not have an error (according to
getError()), and all of its inputs and
outputs have their row requests satisfied (according to
CNKBufReader::isReady() and CNKBufWriter::isReady()).
It might be useful to redefine
isReady() for CNKProc objects that want
to handle their inputs and outputs differently, such as running when
only one of the inputs or outputs is ready, rather than all of them. For
example, this could be used in a merge operation that handles
multiple inputs.
CNKProcCount:
Counts and
Summaries
This proc has a single input buf, and no outputs. It performs several
different types of counting operations on the input data:
1. For all input columns, it accumulates the counts of the
number of NA and non-NA values, the minimum and
maximum non-NA values that have appeared in the column,
and some additional numeric summaries.
2. For factor input columns, it maintains counts of the number of
times each factor level appears.
3. Optionally, a set of factor columns can be selected, and
crosstabs will be calculated for them, counting the number of
times each combination of factor levels appears.
Vista de página 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 96 97 98

Comentários a estes Manuais

Sem comentários