public static class GravitinoClient.ClientBuilder extends GravitinoClientBase.Builder<GravitinoClient>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
metalakeName
The name of the metalake that the client is working on.
|
authDataProvider, checkVersion, headers, uri| Modifier | Constructor and Description |
|---|---|
protected |
ClientBuilder(java.lang.String uri)
The private constructor for the Builder class.
|
| Modifier and Type | Method and Description |
|---|---|
GravitinoClient |
build()
Builds a new GravitinoClient instance.
|
GravitinoClient.ClientBuilder |
withMetalake(java.lang.String metalakeName)
Optional, set the metalake name for this client.
|
withHeaders, withKerberosAuth, withOAuth, withSimpleAuth, withSimpleAuth, withVersionCheckDisabledprotected java.lang.String metalakeName
protected ClientBuilder(java.lang.String uri)
uri - The base URI for the Gravitino API.public GravitinoClient.ClientBuilder withMetalake(java.lang.String metalakeName)
metalakeName - The name of the metalake that the client is working on.public GravitinoClient build()
build in class GravitinoClientBase.Builder<GravitinoClient>java.lang.IllegalArgumentException - If the base URI is null or empty.NoSuchMetalakeException - if the metalake with specified name does not exist.