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

Method getFieldType

src/java/simpledb/storage/TupleDesc.java:146–152  ·  view source on GitHub ↗

Gets the type of the ith field of this TupleDesc. @param i The index of the field to get the type of. It must be a valid index. @return the type of the ith field @throws NoSuchElementException if i is not a valid field reference.

(int i)

Source from the content-addressed store, hash-verified

144 * if i is not a valid field reference.
145 */
146 public Type getFieldType(int i) throws NoSuchElementException {
147 // some code goes here
148 if(i<0 || i>=this.tupleDescList.size()){
149 throw new NoSuchElementException();
150 }
151 return this.tupleDescList.get(i).fieldType;
152 }
153
154 /**
155 * Find the index of the field with a given name.

Callers 15

combineMethod · 0.95
getTypeMethod · 0.95
handleInsertStatementMethod · 0.95
physicalPlanMethod · 0.95
getTupleDescMethod · 0.95
compareTuplesMethod · 0.45
readNextTupleMethod · 0.45
equalsMethod · 0.45
getMaxEntriesMethod · 0.45
readNextKeyMethod · 0.45
getPageDataMethod · 0.45
insertEntryMethod · 0.45

Calls 1

getMethod · 0.80

Tested by 3

combineMethod · 0.76
getTypeMethod · 0.76
compareTuplesMethod · 0.36