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

Method open

src/java/simpledb/execution/Filter.java:48–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 public void open() throws DbException, NoSuchElementException,
49 TransactionAbortedException {
50 // some code goes here
51 child.open();
52 while(child.hasNext()){
53 Tuple next = child.next();
54 if(predicate.filter(next)){
55 childTuple.add(next);
56 }
57 }
58 it = childTuple.iterator();
59 super.open();
60 }
61
62 public void close() {
63 // some code goes here

Callers 6

rewindMethod · 0.95
filterSomeLessThanMethod · 0.95
filterAllLessThanMethod · 0.95
filterEqualMethod · 0.95
filterEqualNoTuplesMethod · 0.95
applyPredicateMethod · 0.95

Calls 5

openMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65
iteratorMethod · 0.65
filterMethod · 0.45

Tested by 6

rewindMethod · 0.76
filterSomeLessThanMethod · 0.76
filterAllLessThanMethod · 0.76
filterEqualMethod · 0.76
filterEqualNoTuplesMethod · 0.76
applyPredicateMethod · 0.76