new ContractITCaseInputFormat(), rightInPath);
DelimitedInputFormat.configureDelimitedFormat(input_right)
.recordDelimiter('\n');
input_right.setDegreeOfParallelism(config.getInteger("CrossTest#NoSubtasks", 1));
CrossOperator testCross = CrossOperator.builder(new TestCross()).build();
testCross.setDegreeOfParallelism(config.getInteger("CrossTest#NoSubtasks", 1));
testCross.getParameters().setString(PactCompiler.HINT_LOCAL_STRATEGY,
config.getString("CrossTest#LocalStrategy", ""));
if (config.getString("CrossTest#ShipStrategy", "").equals("BROADCAST_FIRST")) {
testCross.getParameters().setString(PactCompiler.HINT_SHIP_STRATEGY_FIRST_INPUT,
PactCompiler.HINT_SHIP_STRATEGY_BROADCAST);
testCross.getParameters().setString(PactCompiler.HINT_SHIP_STRATEGY_SECOND_INPUT,
PactCompiler.HINT_SHIP_STRATEGY_FORWARD);
} else if (config.getString("CrossTest#ShipStrategy", "").equals("BROADCAST_SECOND")) {
testCross.getParameters().setString(PactCompiler.HINT_SHIP_STRATEGY_FIRST_INPUT,
PactCompiler.HINT_SHIP_STRATEGY_BROADCAST);
testCross.getParameters().setString(PactCompiler.HINT_SHIP_STRATEGY_SECOND_INPUT,
PactCompiler.HINT_SHIP_STRATEGY_FORWARD);
} else {
testCross.getParameters().setString(PactCompiler.HINT_SHIP_STRATEGY,
config.getString("CrossTest#ShipStrategy", ""));
}
FileDataSink output = new FileDataSink(
new ContractITCaseOutputFormat(), resultPath);
output.setDegreeOfParallelism(1);
output.setInput(testCross);
testCross.setFirstInput(input_left);
testCross.setSecondInput(input_right);
return new Plan(output);
}