MCPcopy Create free account
hub / github.com/awelm/simpledb / createEmptyHeapFile

Method createEmptyHeapFile

src/simpledb/Utility.java:104–125  ·  view source on GitHub ↗

A utility method to create a new HeapFile with a single empty page, assuming the path does not already exist. If the path exists, the file will be overwritten. The new table will be added to the Catalog with the specified number of columns as IntFields.

(String path, int cols)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

setUpMethod · 0.95

Calls 5

openHeapFileMethod · 0.95
getIdMethod · 0.95
createEmptyPageDataMethod · 0.95
writePageMethod · 0.95
closeMethod · 0.65

Tested by 1

setUpMethod · 0.76