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

Method getField

src/java/simpledb/storage/Tuple.java:94–100  ·  view source on GitHub ↗

@return the value of the ith field, or null if it has not been set. @param i field index to return. Must be a valid index.

(int i)

Source from the content-addressed store, hash-verified

92 * field index to return. Must be a valid index.
93 */
94 public Field getField(int i) {
95 // some code goes here
96 if(i<0 || i>= this.fieldList.size()){
97 return null;
98 }
99 return this.fieldList.get(i);
100 }
101
102 /**
103 * Returns the contents of this Tuple as a string. Note that to pass the

Callers 15

indexIteratorMethod · 0.95
testIteratorMethod · 0.95
modifyFieldsMethod · 0.95
testIteratorMethod · 0.95
insertRowMethod · 0.95
findMagicTupleMethod · 0.95
insertRowMethod · 0.95
findMagicTupleMethod · 0.95
validateInsertMethod · 0.95
validateTransactionsMethod · 0.95
runMethod · 0.95

Calls 1

getMethod · 0.80

Tested by 15

indexIteratorMethod · 0.76
testIteratorMethod · 0.76
modifyFieldsMethod · 0.76
testIteratorMethod · 0.76
insertRowMethod · 0.76
findMagicTupleMethod · 0.76
insertRowMethod · 0.76
findMagicTupleMethod · 0.76
validateInsertMethod · 0.76
validateTransactionsMethod · 0.76
runMethod · 0.76