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

Method setUp

test/simpledb/TableStatsTest.java:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 int tableId;
29
30 @Before public void setUp() throws Exception {
31 super.setUp();
32 this.tuples = new ArrayList<>();
33 this.f = SystemTestUtil.createRandomHeapFile(10, 10200, 32, null, tuples);
34
35 this.tableName = SystemTestUtil.getUUID();
36 Database.getCatalog().addTable(f, tableName);
37 this.tableId = Database.getCatalog().getTableId(tableName);
38 }
39
40 private double[] getRandomTableScanCosts(int[] pageNums, int[] ioCosts) throws IOException {
41 double[] ret = new double[ioCosts.length];

Callers

nothing calls this directly

Calls 5

createRandomHeapFileMethod · 0.95
getUUIDMethod · 0.95
getCatalogMethod · 0.95
getTableIdMethod · 0.65
addTableMethod · 0.45

Tested by

no test coverage detected