MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / Join

Method Join

src/java/simpledb/execution/Join.java:36–45  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.95
getTupleDescMethod · 0.65

Tested by

no test coverage detected