public class GravitinoAdminClient extends GravitinoClientBase implements SupportsMetalakes
Normal users should use GravitinoClient
to connect with the Gravitino server.
Modifier and Type | Class and Description |
---|---|
static class |
GravitinoAdminClient.AdminClientBuilder
Builder class for constructing a GravitinoAdminClient.
|
GravitinoClientBase.Builder<T>
API_METALAKES_IDENTIFIER_PATH, API_METALAKES_LIST_PATH, restClient
Modifier and Type | Method and Description |
---|---|
GravitinoMetalake |
alterMetalake(java.lang.String name,
MetalakeChange... changes)
Alters a specific Metalake using the Gravitino API.
|
static GravitinoAdminClient.AdminClientBuilder |
builder(java.lang.String uri)
Creates a new builder for constructing a GravitinoClient.
|
GravitinoMetalake |
createMetalake(java.lang.String name,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new Metalake using the Gravitino API.
|
boolean |
dropMetalake(java.lang.String name)
Drops a specific Metalake using the Gravitino API.
|
GravitinoMetalake[] |
listMetalakes()
Retrieves a list of Metalakes from the Gravitino API.
|
checkMetalakeName, checkVersion, clientVersion, close, getVersion, loadMetalake, serverVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadMetalake, metalakeExists
public GravitinoMetalake[] listMetalakes()
listMetalakes
in interface SupportsMetalakes
public GravitinoMetalake createMetalake(java.lang.String name, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> properties) throws MetalakeAlreadyExistsException
createMetalake
in interface SupportsMetalakes
name
- The name of the new Metalake.comment
- The comment for the new Metalake.properties
- The properties of the new Metalake.MetalakeAlreadyExistsException
- If a Metalake with the specified identifier already
exists.public GravitinoMetalake alterMetalake(java.lang.String name, MetalakeChange... changes) throws NoSuchMetalakeException, java.lang.IllegalArgumentException
alterMetalake
in interface SupportsMetalakes
name
- The name of the Metalake to be altered.changes
- The changes to be applied to the Metalake.NoSuchMetalakeException
- If the specified Metalake does not exist.java.lang.IllegalArgumentException
- If the provided changes are invalid or not applicable.public boolean dropMetalake(java.lang.String name)
dropMetalake
in interface SupportsMetalakes
name
- The name of the Metalake to be dropped.public static GravitinoAdminClient.AdminClientBuilder builder(java.lang.String uri)
uri
- The base URI for the Gravitino API.