Example #1
0
 @Test
 public void testComm() throws Exception {
   PCollection<Tuple3<String, String, String>> comm = Set.comm(set1, set2);
   Iterator<Tuple3<String, String, String>> i = comm.materialize().iterator();
   checkEquals(null, null, "a", i.next());
   checkEquals("b", null, null, i.next());
   checkEquals(null, null, "c", i.next());
   checkEquals(null, "d", null, i.next());
   checkEquals("e", null, null, i.next());
   assertFalse(i.hasNext());
 }