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

Method filter

src/java/simpledb/execution/Predicate.java:109–113  ·  view source on GitHub ↗

Compares the field number of t specified in the constructor to the operand field specified in the constructor using the operator specific in the constructor. The comparison can be made through Field's compare method. @param t The tuple to compare against @return true if the comparison is

(Tuple t)

Source from the content-addressed store, hash-verified

107 * @return true if the comparison is true, false otherwise.
108 */
109 public boolean filter(Tuple t) {
110 // some code goes here
111 Field field = t.getField(this.field);
112 return field.compare(this.op,this.operand);
113 }
114
115 /**
116 * Returns something useful, like "f = field_id op = op_string operand =

Callers 3

filterMethod · 0.95
openMethod · 0.45
openMethod · 0.45

Calls 2

compareMethod · 0.95
getFieldMethod · 0.45

Tested by 1

filterMethod · 0.76