(String id, int actualCount )
| 243 | |
| 244 | //verifies results |
| 245 | public void verifyUnion(String id, int actualCount ) throws Exception { |
| 246 | |
| 247 | Iterator<Tuple> it = pig.openIterator(id); |
| 248 | Tuple t = null ; |
| 249 | int count = 0 ; |
| 250 | |
| 251 | while(it.hasNext()) { |
| 252 | t = it.next() ; |
| 253 | System.out.println(count + ":" + t) ; |
| 254 | count++ ; |
| 255 | } |
| 256 | |
| 257 | Assert.assertEquals(count, actualCount); |
| 258 | } |
| 259 | |
| 260 | /*** |
| 261 | * For generating a sample dataset |
no test coverage detected