Class CatalogApi
java.lang.Object
org.apache.polaris.service.it.env.RestApi
org.apache.polaris.service.it.env.PolarisRestApi
org.apache.polaris.service.it.env.CatalogApi
A simple, non-exhaustive set of helper methods for accessing the Iceberg REST API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogApi(jakarta.ws.rs.client.Client client, PolarisApiEndpoints endpoints, String authToken, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateNamespace(String catalogName, String namespaceName) voiddeleteNamespace(String catalog, org.apache.iceberg.catalog.Namespace namespace) voidvoidList<org.apache.iceberg.catalog.Namespace> listAllNamespacesChildFirst(String catalog) List<org.apache.iceberg.catalog.Namespace> listNamespaces(String catalog, org.apache.iceberg.catalog.Namespace parent) org.apache.iceberg.rest.responses.ListNamespacesResponselistNamespaces(String catalog, org.apache.iceberg.catalog.Namespace parent, String pageToken, String pageSize) List<org.apache.iceberg.catalog.TableIdentifier> listTables(String catalog, org.apache.iceberg.catalog.Namespace namespace) org.apache.iceberg.rest.responses.ListTablesResponselistTables(String catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, String pageSize) List<org.apache.iceberg.catalog.TableIdentifier> org.apache.iceberg.rest.responses.ListTablesResponselistViews(String catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, String pageSize) org.apache.iceberg.rest.responses.LoadCredentialsResponseloadCredentials(String catalog, org.apache.iceberg.catalog.TableIdentifier id) org.apache.iceberg.rest.responses.LoadTableResponseorg.apache.iceberg.rest.responses.LoadTableResponseloadTable(String catalog, org.apache.iceberg.catalog.TableIdentifier id, String snapshots, Map<String, String> headers) org.apache.iceberg.rest.responses.LoadTableResponseloadTableWithAccessDelegation(String catalog, org.apache.iceberg.catalog.TableIdentifier id, String snapshots) voidvoidorg.apache.iceberg.rest.responses.LoadTableResponseregisterTable(String catalog, org.apache.iceberg.catalog.Namespace namespace, String tableName, String metadataLocation, boolean overwrite) org.apache.iceberg.rest.responses.LoadTableResponseregisterTable(String catalog, org.apache.iceberg.catalog.Namespace namespace, String tableName, String metadataLocation, boolean overwrite, Map<String, String> headers) org.apache.iceberg.rest.responses.LoadTableResponseregisterTableWithAccessDelegation(String catalog, org.apache.iceberg.catalog.Namespace namespace, String tableName, String metadataLocation, boolean overwrite) voidrenameTable(String catalog, org.apache.iceberg.catalog.TableIdentifier source, org.apache.iceberg.catalog.TableIdentifier destination) Methods inherited from class org.apache.polaris.service.it.env.PolarisRestApi
defaultHeaders, request
-
Constructor Details
-
CatalogApi
public CatalogApi(jakarta.ws.rs.client.Client client, PolarisApiEndpoints endpoints, String authToken, URI uri)
-
-
Method Details
-
createNamespace
-
listNamespaces
-
listNamespaces
-
listAllNamespacesChildFirst
-
deleteNamespace
-
purge
-
purge
-
listTables
-
listTables
-
renameTable
public void renameTable(String catalog, org.apache.iceberg.catalog.TableIdentifier source, org.apache.iceberg.catalog.TableIdentifier destination) -
dropTable
-
registerTable
-
registerTableWithAccessDelegation
-
registerTable
-
loadTable
-
loadTableWithAccessDelegation
-
loadCredentials
public org.apache.iceberg.rest.responses.LoadCredentialsResponse loadCredentials(String catalog, org.apache.iceberg.catalog.TableIdentifier id) -
loadTable
-
listViews
-
listViews
-
dropView
-