()
| 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 { |
nothing calls this directly
no test coverage detected