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

Method setField

src/java/simpledb/storage/Tuple.java:79–86  ·  view source on GitHub ↗

Change the value of the ith field of this tuple. @param i index of the field to change. It must be a valid index. @param f new value for the field.

(int i, Field f)

Source from the content-addressed store, hash-verified

77 * new value for the field.
78 */
79 public void setField(int i, Field f) {
80 // some code goes here
81 if(i>=this.fieldList.size()){
82 this.fieldList.add(i,f);
83 }else{
84 this.fieldList.set(i,f);
85 }
86 }
87
88 /**
89 * @return the value of the ith field, or null if it has not been set.

Callers 15

modifyFieldsMethod · 0.95
testIteratorMethod · 0.95
addTupleMethod · 0.95
createTupleListMethod · 0.95
readNextMethod · 0.95
nextMethod · 0.95
insertRowMethod · 0.95
insertRowMethod · 0.95
runMethod · 0.95
insertRowMethod · 0.95
handleInsertStatementMethod · 0.95
readNextTupleMethod · 0.95

Calls

no outgoing calls

Tested by 10

modifyFieldsMethod · 0.76
testIteratorMethod · 0.76
addTupleMethod · 0.76
createTupleListMethod · 0.76
readNextMethod · 0.76
nextMethod · 0.76
insertRowMethod · 0.76
insertRowMethod · 0.76
runMethod · 0.76
insertRowMethod · 0.76