use of edu.iu.dsc.tws.tset.sets.batch.row.RowComputeTSet in project twister2 by DSC-SPIDAL.
the class RowBatchTLinkImpl method compute.
protected RowComputeTSet compute(String n, ComputeCollectorFunc<Iterator<Row>, Row> computeFunction) {
RowComputeTSet set;
if (n != null && !n.isEmpty()) {
set = new RowComputeTSet(getTSetEnv(), n, computeFunction, getTargetParallelism(), (RowSchema) getSchema(), false);
} else {
set = new RowComputeTSet(getTSetEnv(), computeFunction, getTargetParallelism(), (RowSchema) getSchema(), false);
}
addChildToGraph(set);
return set;
}
use of edu.iu.dsc.tws.tset.sets.batch.row.RowComputeTSet in project twister2 by DSC-SPIDAL.
the class RowPartitionTLink method compute.
protected RowComputeTSet compute(String n, ComputeCollectorFunc<Iterator<Row>, Row> computeFunction) {
RowComputeTSet set;
if (n != null && !n.isEmpty()) {
set = new RowComputeTSet(getTSetEnv(), n, computeFunction, getTargetParallelism(), (RowSchema) getSchema(), true);
} else {
set = new RowComputeTSet(getTSetEnv(), computeFunction, getTargetParallelism(), (RowSchema) getSchema(), true);
}
addChildToGraph(set);
return set;
}
Aggregations