TableRepository¶
Persist Table Metadata¶
createTable
creates a TableInfo
with randomly-generated UUID as the table ID and the other metadata.
createTable
prints out the following DEBUG message to the logs:
MANAGED
tables are not supported yet
createTable
asserts that storage_location
is specified for an EXTERNAL table.
createTable
persists the table's properties (to uc_properties
table using PropertyDAO
).
In the end, createTable
persists the table metadata.
createTable
is used when:
TableService
is requested to create a table metadata
List Tables¶
ListTablesResponse listTables(
String catalogName,
String schemaName,
Optional<Integer> maxResults,
Optional<String> pageToken,
Boolean omitProperties,
Boolean omitColumns) // (1)!
ListTablesResponse listTables(
Session session,
UUID schemaId,
String catalogName,
String schemaName,
Optional<Integer> maxResults,
Optional<String> pageToken,
Boolean omitProperties,
Boolean omitColumns)
- Opens a new session using the system-wide SessionFactory and starts a new transaction
listTables
requests the PagedListingHelper to listEntity.
listTables
...FIXME
listTables
is used when:
TableService
is requested to list the tables