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

Method setUp

test/org/apache/pig/test/TestForEach.java:56–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 DataBag projDB;
55
56 @Before
57 public void setUp() throws Exception {
58 Random r = new Random();
59 db = GenRandomData.genRandSmallTupDataBagWithNulls(r, 10, 100);
60 projDB = TestHelper.projectBag(db, 0);
61 fe = GenPhyOp.topForEachOPWithPlan(0, db.iterator().next());
62 POProject proj = GenPhyOp.exprProject();
63 proj.setColumn(0);
64 proj.setResultType(DataType.TUPLE);
65 proj.setOverloaded(true);
66 Tuple t = new DefaultTuple();
67 t.append(db);
68 proj.attachInput(t);
69 List<PhysicalOperator> inputs = new ArrayList<PhysicalOperator>();
70 inputs.add(proj);
71 fe.setInputs(inputs);
72 }
73
74 @Test
75 public void testGetNextTuple() throws ExecException, IOException {

Callers

nothing calls this directly

Calls 13

projectBagMethod · 0.95
topForEachOPWithPlanMethod · 0.95
exprProjectMethod · 0.95
setColumnMethod · 0.95
setOverloadedMethod · 0.95
appendMethod · 0.95
attachInputMethod · 0.95
iteratorMethod · 0.65
addMethod · 0.65
nextMethod · 0.45
setResultTypeMethod · 0.45

Tested by

no test coverage detected