@Generated public class SchemasAPI extends Object
Constructor and Description |
---|
SchemasAPI(ApiClient apiClient)
Regular-use constructor
|
SchemasAPI(SchemasService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
SchemaInfo |
create(CreateSchema request)
Create a schema.
|
SchemaInfo |
create(String name,
String catalogName) |
void |
delete(DeleteSchemaRequest request)
Delete a schema.
|
void |
delete(String fullName) |
SchemaInfo |
get(GetSchemaRequest request)
Get a schema.
|
SchemaInfo |
get(String fullName) |
SchemasService |
impl() |
Iterable<SchemaInfo> |
list(ListSchemasRequest request)
List schemas.
|
Iterable<SchemaInfo> |
list(String catalogName) |
SchemaInfo |
update(String fullName) |
SchemaInfo |
update(UpdateSchema request)
Update a schema.
|
public SchemasAPI(ApiClient apiClient)
public SchemasAPI(SchemasService mock)
public SchemaInfo create(String name, String catalogName)
public SchemaInfo create(CreateSchema request)
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.
public void delete(String fullName)
public void delete(DeleteSchemaRequest request)
Deletes the specified schema from the parent catalog. The caller must be the owner of the schema or an owner of the parent catalog.
public SchemaInfo get(String fullName)
public SchemaInfo get(GetSchemaRequest request)
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.
public Iterable<SchemaInfo> list(String catalogName)
public Iterable<SchemaInfo> list(ListSchemasRequest request)
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.
public SchemaInfo update(String fullName)
public SchemaInfo update(UpdateSchema request)
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.
public SchemasService impl()
Copyright © 2023. All rights reserved.