@Generated public interface TablesService
A table can be managed or external. From an API perspective, a __VIEW__ is a particular kind of table (rather than a managed or external table).
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DeleteTableRequest deleteTableRequest)
Deletes a table from the specified parent catalog and schema.
|
TableExistsResponse |
exists(ExistsRequest existsRequest)
Gets if a table exists in the metastore for a specific catalog and schema.
|
TableInfo |
get(GetTableRequest getTableRequest)
Gets a table from the metastore for a specific catalog and schema.
|
ListTablesResponse |
list(ListTablesRequest listTablesRequest)
Gets an array of all tables for the current metastore under the parent catalog and schema.
|
ListTableSummariesResponse |
listSummaries(ListSummariesRequest listSummariesRequest)
Gets an array of summaries for tables for a schema and catalog within the metastore.
|
void |
update(UpdateTableRequest updateTableRequest)
Change the owner of the table.
|
void delete(DeleteTableRequest deleteTableRequest)
TableExistsResponse exists(ExistsRequest existsRequest)
TableInfo get(GetTableRequest getTableRequest)
ListTablesResponse list(ListTablesRequest listTablesRequest)
ListTableSummariesResponse listSummaries(ListSummariesRequest listSummariesRequest)
* summaries for tables (within the current metastore and parent catalog and schema), when the user is a metastore admin, or: * summaries for tables and schemas (within the current metastore and parent catalog) for which the user has ownership or the **SELECT** privilege on the table and ownership or **USE_SCHEMA** privilege on the schema, provided that the user also has ownership or the **USE_CATALOG** privilege on the parent catalog.
There is no guarantee of a specific ordering of the elements in the array.
void update(UpdateTableRequest updateTableRequest)
Copyright © 2025. All rights reserved.