Using a keyless collection method
You can use the collection methods round robin and ordered without deriving a new APT_Collector class.
These collection methods are built in. Simply include a call to APT_Operator::setCollectionMethod() within the APT_Operator::describeOperator() function of your derived operator.
The function prototype of APT_Operator::setCollectionMethod() takes
two arguments, as shown:
void setCollectionMethod(APT_Operator::CollectionMethod cType,
int inputDS);
The first argument, cType, specifies the collection method as defined by the
following values: - APT_Operator::eCollectRoundRobin
- APT_Operator::eCollectOrdered
For example, to use round robin collection with a sequential operator
that takes a single input data set, include the following statements
within the operator describeOperator() function:
setKind(APT_Operator::eSequential);
setCollectionMethod(APT_Operator::eCollectRoundRobin, 0);
If the operator has two input data sets and you want to use ordered
for both, include the lines: setKind(APT_Operator::eSequential);
setCollectionMethod(APT_Operator::eCollectOrdered, 0);
setCollectionMethod(APT_Operator::eCollectOrdered, 1);