96
These are the constructor, destructor, and init() methods. The
execute() method is run when this CNKProc is executed within a
pipeline.
CNKProcRandomReader::
void setTotalRows(INT64 rows);
INT64 getTotalRows();
These methods set/get the total number of rows to be written by this
proc, before the proc sends an
EOF to the output buf, and specifies that
it is done.
CNKProcRandomReader::
void setSeed(long seed);
long getSeed();
These methods set/get the random seed used for initializing the
random number generator: it should be a long between 1 and
2147483646 (otherwise the seed is set to 1). If a random reader proc
is created with the same seed value and the same number of columns,
it will generate the same sequence of random numbers.
CNKPipeline :
Pipeline Object
A CNKPipeline object packages up a set of CNKProc and CNKBuf
objects so the procs can be executed to process a series of data
chunks. After a pipeline is constructed, its
init() method should be
called to initialize the pipeline. This will initialize all of the bufs and
procs in the pipeline, so it is not necessary to init them explicitly.
CNKPipeline::
CNKPipeline();
virtual ~CNKPipeline();
virtual void init();
These are the CNKPipeline constructor, destructor, and init()
method. A CNKPipeline is created with new CNKPipeline(), then a
number of
CNKProc and CNKBuf objects are added to the pipeline, and
then
init() is called to initialize it, which will initialize all of the bufs
and procs in the pipeline.
CNKPipeline::
void addProc(CNKProc* proc);
void removeProc(CNKProc* proc);
int getNumProcs();
Comentários a estes Manuais