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

Method getPrimaryKey

src/java/simpledb/common/Catalog.java:188–195  ·  view source on GitHub ↗
(int tableid)

Source from the content-addressed store, hash-verified

186 }
187
188 public String getPrimaryKey(int tableid) {
189 // some code goes here
190 Table table = this.getTableById(tableid);
191 if(table!=null){
192 return table.getPkeyField();
193 }
194 return null;
195 }
196
197 public Iterator<Integer> tableIdIterator() {
198 // some code goes here

Callers 3

updateJoinCardinalityMethod · 0.80
isPkeyMethod · 0.80

Calls 2

getTableByIdMethod · 0.95
getPkeyFieldMethod · 0.95

Tested by

no test coverage detected