MCPcopy Create free account
hub / github.com/apache/pig / testSingleStore

Method testSingleStore

test/org/apache/pig/test/TestStoreOld.java:48–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 @Test
49 public void testSingleStore() throws Exception{
50 pig.registerQuery("A = load " + fileName + ";");
51
52 pig.store("A", tmpFile1);
53
54 pig.registerQuery("B = load " + tmpFile1 + ";");
55 Iterator<Tuple> iter = pig.openIterator("B");
56
57 int i =0;
58 while (iter.hasNext()){
59 Tuple t = iter.next();
60 assertEquals(DataType.toInteger(t.get(0)).intValue(),i);
61 assertEquals(DataType.toInteger(t.get(1)).intValue(),i);
62 i++;
63 }
64 }
65
66 @Test
67 public void testMultipleStore() throws Exception{

Callers

nothing calls this directly

Calls 8

toIntegerMethod · 0.95
getMethod · 0.95
openIteratorMethod · 0.80
registerQueryMethod · 0.45
storeMethod · 0.45
hasNextMethod · 0.45
nextMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected