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

Method getTupleDesc

src/java/simpledb/common/Utility.java:36–38  ·  view source on GitHub ↗

@return a TupleDesc with n fields of type Type.INT_TYPE, each named name + n (name1, name2, etc.).

(int n, String name)

Source from the content-addressed store, hash-verified

34 * name + n (name1, name2, etc.).
35 */
36 public static TupleDesc getTupleDesc(int n, String name) {
37 return new TupleDesc(getTypes(n), getStrings(n, name));
38 }
39
40 /**
41 * @return a TupleDesc with n fields of type Type.INT_TYPE

Callers 15

setUpMethod · 0.95
getTupleDescMethod · 0.95
getTupleDescMethod · 0.95
combineMethod · 0.95
getTypeMethod · 0.95
nameToIdMethod · 0.95
getSizeMethod · 0.95
numFieldsMethod · 0.95
addTablesMethod · 0.95
getTupleDescMethod · 0.95
handleDuplicateNamesMethod · 0.95
handleDuplicateIdsMethod · 0.95

Calls 2

getTypesMethod · 0.95
getStringsMethod · 0.95

Tested by 15

setUpMethod · 0.76
getTupleDescMethod · 0.76
getTupleDescMethod · 0.76
combineMethod · 0.76
getTypeMethod · 0.76
nameToIdMethod · 0.76
getSizeMethod · 0.76
numFieldsMethod · 0.76
addTablesMethod · 0.76
getTupleDescMethod · 0.76
handleDuplicateNamesMethod · 0.76
handleDuplicateIdsMethod · 0.76