EDOBE XDOM PMML Uživatelský manuál Strana 79

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 98
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 78
79
CNKBufWriter
Methods
Most of the methods for CNKBufWriter are similar to those for
CNKBufReader. Like the other class, where is no public constructor for
a
CNKBufWriter object (it is created automatically in
CNKProc::setOutputBuf), and no public init() method (it is
initialized in
CNKBuf::init()).
CNKBufWriter::
CNKBuf* getBuf();
CNKProc* getProc();
Returns the CNKBuf or CNKProc linked by this CNKBufWriter.
CNKBufWriter::
virtual void setRequestRows(long numRows);
virtual long getRequestRows();
A CNKProc calls setRequestRows to request space for writing a given
number of data rows. This number must be less than or equal to the
total number of rows in the
CNKBuf. setRequestRows can be called
multiple times, to adjust this number up or down.
getRequestRows
returns the last row request.
When a
CNKProc calls setRequestRows, if numRows is greater than the
total number of rows in the
CNKBuf, or if numRows is greater than
CNKProc:: getNumRows(), then an error string is set for the CNKProc.
CNKBufWriter::
virtual long getRowsReady();
getRowsReady returns the number of data rows that are available to
write. At any given time, it may be less than the row request, equal to
it, or even greater (if there happen to be more rows available than the
request). However, the programmer can depend on it's always
increasing, until
releaseRows is called to release some of the read
data rows. Therefore, it is safe to save the value returned by
getRowsReady, and then process that many rows, without calling it
again to check.
CNKBufWriter::
virtual int isReady();
Zobrazit stránku 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 97 98

Komentáře k této Příručce

Žádné komentáře