Search in sources :

Example 1 with RowComputeTSet

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;
}
Also used : RowComputeTSet(edu.iu.dsc.tws.tset.sets.batch.row.RowComputeTSet) RowSchema(edu.iu.dsc.tws.api.tset.schema.RowSchema)

Example 2 with RowComputeTSet

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;
}
Also used : RowComputeTSet(edu.iu.dsc.tws.tset.sets.batch.row.RowComputeTSet) RowSchema(edu.iu.dsc.tws.api.tset.schema.RowSchema)

Aggregations

RowSchema (edu.iu.dsc.tws.api.tset.schema.RowSchema)2 RowComputeTSet (edu.iu.dsc.tws.tset.sets.batch.row.RowComputeTSet)2