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

Method setUpProjFil

test/org/apache/pig/test/TestFilter.java:65–82  ·  view source on GitHub ↗
(boolean withNulls)

Source from the content-addressed store, hash-verified

63 }
64
65 private void setUpProjFil(boolean withNulls) throws Exception {
66 if (withNulls)
67 inp = GenRandomData.genRandSmallTupDataBagWithNulls(r, 10, 100);
68 else
69 inp = GenRandomData.genRandSmallTupDataBag(r, 10, 100);
70 t = GenRandomData.genRandSmallBagTuple(r, 10, 100);
71 projFil = GenPhyOp.topFilterOpWithProj(1, 50);
72 POProject inpPrj = GenPhyOp.exprProject();
73 Tuple tmpTpl = new DefaultTuple();
74 tmpTpl.append(inp);
75 inpPrj.setColumn(0);
76 inpPrj.setResultType(DataType.TUPLE);
77 inpPrj.setOverloaded(true);
78 inpPrj.attachInput(tmpTpl);
79 List<PhysicalOperator> inputs = new ArrayList<PhysicalOperator>();
80 inputs.add(inpPrj);
81 projFil.setInputs(inputs);
82 }
83
84 @Test
85 public void testGetNextTuple() throws Exception {

Callers 1

testGetNextTupleMethod · 0.95

Calls 12

genRandSmallBagTupleMethod · 0.95
topFilterOpWithProjMethod · 0.95
exprProjectMethod · 0.95
appendMethod · 0.95
setColumnMethod · 0.95
setOverloadedMethod · 0.95
attachInputMethod · 0.95
addMethod · 0.65
setResultTypeMethod · 0.45
setInputsMethod · 0.45

Tested by

no test coverage detected