54
enough rows available), but the proc writing to that buf cannot write
to it (because the buf doesn't have enough free rows for writing to). In
general, a buf needs to contain a number of rows equal to the
maximum number of rows the writing proc can request, plus the
maximum number of rows that any of the readers can ask for. To
avoid this problem, the default number of rows for a buf is 2000, and
for any of the procs is 1000 rows.
C++ Libraries The C++ pipeline classes used by Spotfire Miner are divided into five
libraries: cnkbase, cnkio, cnkjava, cnkmisc, and cnksp. These are
distributed as dynamic linked libraries (*.dll).
Header files for the cnkbase library are available in include/
cnkbase. Debug and Release versions of cnkbase.lib are available in
lib/cnkbase. As programmers are not expected to directly use or
extend the other libraries, these files are only provided for cnkbase.
User-written procs belong in a user-written library, as shown in the
example in section Simple C++ Version on page 32
Cnkbase Library
The cnkbase library provides the core pipeline implementation.
This includes classes for procs, bufs, and the pipeline.
Programmers implementing new procedures or doing pipeline
programming in general will use these classes.
Cnkio Library
The cnkio library provides file and database IO support. The
CNKProcFile class supports all of the file and database read/write
nodes in Spotfire Miner.
Cnkjava Library
The cnkjava library provides support for communicating between
C++ and Java. This includes the
CNKJava class with infrastructure for
passing information between C++ and Java, and the
CNKProcJavaTransform class used to call back into Java to perform
computations in Java.
Java programmers will use the Java side of this connection.
Comentarios a estos manuales