@Generated public interface SchemasService
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 |
|---|---|
SchemaInfo |
create(CreateSchema createSchema)
Create a schema.
|
void |
delete(DeleteSchemaRequest deleteSchemaRequest)
Delete a schema.
|
SchemaInfo |
get(GetSchemaRequest getSchemaRequest)
Get a schema.
|
ListSchemasResponse |
list(ListSchemasRequest listSchemasRequest)
List schemas.
|
SchemaInfo |
update(UpdateSchema updateSchema)
Update a schema.
|
SchemaInfo create(CreateSchema createSchema)
Creates a new schema for catalog in the Metatastore. The caller must be a metastore admin, or have the **CREATE_SCHEMA** privilege in the parent catalog.
void delete(DeleteSchemaRequest deleteSchemaRequest)
Deletes the specified schema from the parent catalog. The caller must be the owner of the schema or an owner of the parent catalog.
SchemaInfo get(GetSchemaRequest getSchemaRequest)
Gets the specified schema within the metastore. The caller must be a metastore admin, the owner of the schema, or a user that has the **USE_SCHEMA** privilege on the schema.
ListSchemasResponse list(ListSchemasRequest listSchemasRequest)
Gets an array of schemas for a catalog in the metastore. If the caller is the metastore admin or the owner of the parent catalog, all schemas for the catalog will be retrieved. Otherwise, only schemas owned by the caller (or for which the caller has the **USE_SCHEMA** privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in the array.
SchemaInfo update(UpdateSchema updateSchema)
Updates a schema for a catalog. The caller must be the owner of the schema or a metastore admin. If the caller is a metastore admin, only the __owner__ field can be changed in the update. If the __name__ field must be updated, the caller must be a metastore admin or have the **CREATE_SCHEMA** privilege on the parent catalog.
Copyright © 2024. All rights reserved.