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

Method getFieldName

src/java/simpledb/storage/TupleDesc.java:128–134  ·  view source on GitHub ↗

Gets the (possibly null) field name of the ith field of this TupleDesc. @param i index of the field name to return. It must be a valid index. @return the name of the ith field @throws NoSuchElementException if i is not a valid field reference.

(int i)

Source from the content-addressed store, hash-verified

126 * if i is not a valid field reference.
127 */
128 public String getFieldName(int i) throws NoSuchElementException {
129 // some code goes here
130 if(i<0 || i>=this.tupleDescList.size()){
131 throw new NoSuchElementException();
132 }
133 return this.tupleDescList.get(i).fieldName;
134 }
135
136 /**
137 * Gets the type of the ith field of this TupleDesc.

Callers 15

testTupleDescMethod · 0.95
buildTreeMethod · 0.95
ProjectMethod · 0.95
executeMethod · 0.95
getTupleDescMethod · 0.95
combinedStringArraysMethod · 0.45
fieldNameToIndexMethod · 0.45
resetMethod · 0.45
groupFieldNameMethod · 0.45
aggregateFieldNameMethod · 0.45
getJoinField1NameMethod · 0.45

Calls 1

getMethod · 0.80

Tested by 2

testTupleDescMethod · 0.76
combinedStringArraysMethod · 0.36