Class CatalogHandlerUtils
java.lang.Object
org.apache.polaris.service.catalog.iceberg.CatalogHandlerUtils
CODE_COPIED_TO_POLARIS Copied from CatalogHandler in Iceberg 1.8.0 Contains a collection of
utilities related to managing Iceberg entities
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogHandlerUtils(int maxCommitRetries, boolean rollbackCompactionEnabled) CatalogHandlerUtils(org.apache.polaris.core.context.RealmContext realmContext, org.apache.polaris.core.config.PolarisConfigurationStore configurationStore) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.iceberg.TableMetadatacommit(org.apache.iceberg.TableOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request) protected org.apache.iceberg.view.ViewMetadatacommit(org.apache.iceberg.view.ViewOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request) org.apache.iceberg.rest.responses.CreateNamespaceResponsecreateNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.rest.requests.CreateNamespaceRequest request) org.apache.iceberg.rest.responses.LoadTableResponsecreateTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateTableRequest request) org.apache.iceberg.rest.responses.LoadViewResponsecreateView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateViewRequest request) voiddropNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) voiddropTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) voiddropView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier) org.apache.iceberg.rest.responses.ListNamespacesResponselistNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent) org.apache.iceberg.rest.responses.ListNamespacesResponselistNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent, String pageToken, Integer pageSize) org.apache.iceberg.rest.responses.ListTablesResponselistTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace) org.apache.iceberg.rest.responses.ListTablesResponselistTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize) org.apache.iceberg.rest.responses.ListTablesResponselistViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace) org.apache.iceberg.rest.responses.ListTablesResponselistViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize) org.apache.iceberg.rest.responses.GetNamespaceResponseloadNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) org.apache.iceberg.rest.responses.LoadTableResponseloadTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) org.apache.iceberg.rest.responses.LoadViewResponseloadView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier) voidnamespaceExists(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) voidpurgeTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) org.apache.iceberg.rest.responses.LoadTableResponseregisterTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.RegisterTableRequest request) voidrenameTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request) voidrenameView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request) org.apache.iceberg.rest.responses.LoadTableResponsestageTableCreate(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateTableRequest request) voidtableExists(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) org.apache.iceberg.rest.responses.UpdateNamespacePropertiesResponseupdateNamespaceProperties(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.UpdateNamespacePropertiesRequest request) org.apache.iceberg.rest.responses.LoadTableResponseupdateTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident, org.apache.iceberg.rest.requests.UpdateTableRequest request) org.apache.iceberg.rest.responses.LoadViewResponseupdateView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier ident, org.apache.iceberg.rest.requests.UpdateTableRequest request) voidviewExists(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
-
Constructor Details
-
CatalogHandlerUtils
@Inject public CatalogHandlerUtils(org.apache.polaris.core.context.RealmContext realmContext, org.apache.polaris.core.config.PolarisConfigurationStore configurationStore) -
CatalogHandlerUtils
public CatalogHandlerUtils(int maxCommitRetries, boolean rollbackCompactionEnabled)
-
-
Method Details
-
listNamespaces
public org.apache.iceberg.rest.responses.ListNamespacesResponse listNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent) -
listNamespaces
-
createNamespace
public org.apache.iceberg.rest.responses.CreateNamespaceResponse createNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.rest.requests.CreateNamespaceRequest request) -
namespaceExists
public void namespaceExists(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) -
loadNamespace
public org.apache.iceberg.rest.responses.GetNamespaceResponse loadNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) -
dropNamespace
public void dropNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace) -
updateNamespaceProperties
public org.apache.iceberg.rest.responses.UpdateNamespacePropertiesResponse updateNamespaceProperties(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.UpdateNamespacePropertiesRequest request) -
listTables
public org.apache.iceberg.rest.responses.ListTablesResponse listTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace) -
listTables
-
stageTableCreate
public org.apache.iceberg.rest.responses.LoadTableResponse stageTableCreate(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateTableRequest request) -
createTable
public org.apache.iceberg.rest.responses.LoadTableResponse createTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateTableRequest request) -
registerTable
public org.apache.iceberg.rest.responses.LoadTableResponse registerTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.RegisterTableRequest request) -
dropTable
public void dropTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) -
purgeTable
public void purgeTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) -
tableExists
public void tableExists(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) -
loadTable
public org.apache.iceberg.rest.responses.LoadTableResponse loadTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident) -
updateTable
public org.apache.iceberg.rest.responses.LoadTableResponse updateTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident, org.apache.iceberg.rest.requests.UpdateTableRequest request) -
renameTable
public void renameTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request) -
commit
public org.apache.iceberg.TableMetadata commit(org.apache.iceberg.TableOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request) -
listViews
public org.apache.iceberg.rest.responses.ListTablesResponse listViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace) -
listViews
-
createView
public org.apache.iceberg.rest.responses.LoadViewResponse createView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace, org.apache.iceberg.rest.requests.CreateViewRequest request) -
viewExists
public void viewExists(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier) -
loadView
public org.apache.iceberg.rest.responses.LoadViewResponse loadView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier) -
updateView
public org.apache.iceberg.rest.responses.LoadViewResponse updateView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier ident, org.apache.iceberg.rest.requests.UpdateTableRequest request) -
renameView
public void renameView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request) -
dropView
public void dropView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier) -
commit
protected org.apache.iceberg.view.ViewMetadata commit(org.apache.iceberg.view.ViewOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request)
-