use of org.apache.rya.reasoning.Derivation in project incubator-rya by apache.
the class DuplicateEliminationTest method testRetainSimplest.
@Test
public void testRetainSimplest() throws Exception {
List<Derivation> facts = new LinkedList<>();
facts.add(Y_SUPER_X_INV.getDerivation());
facts.add(Y_SUPER_X.getDerivation());
Fact unset = Y_SUPER_X.clone();
unset.unsetDerivation();
ReduceDriver<Fact, Derivation, Fact, NullWritable> driver = new ReduceDriver<>();
driver.getConfiguration().setInt(MRReasoningUtils.STEP_PROP, 1);
driver.withReducer(new DuplicateElimination.DuplicateEliminationReducer()).withInput(unset, facts).withMultiOutput(MRReasoningUtils.INTERMEDIATE_OUT, Y_SUPER_X, NullWritable.get()).runTest();
}
Aggregations