Constructor. Accepts two children to join and the predicate to join them on @param p The predicate to use to join the children @param child1 Iterator for the left(outer) relation to join @param child2 Iterator for the right(inner) relation to join
(JoinPredicate p, OpIterator child1, OpIterator child2)
| 34 | * Iterator for the right(inner) relation to join |
| 35 | */ |
| 36 | public Join(JoinPredicate p, OpIterator child1, OpIterator child2) { |
| 37 | // some code goes here |
| 38 | this.joinPredicate = p; |
| 39 | this.child1 = child1; |
| 40 | this.child2 = child2; |
| 41 | this.tupleDesc = TupleDesc.merge(child1.getTupleDesc(),child2.getTupleDesc()); |
| 42 | // if(p.getOperator().equals(Predicate.Op.EQUALS)){ |
| 43 | // hashEquiJoin = new HashEquiJoin(p,child1,child2); |
| 44 | // } |
| 45 | } |
| 46 | |
| 47 | public JoinPredicate getJoinPredicate() { |
| 48 | // some code goes here |
nothing calls this directly
no test coverage detected