Class CatalogHandlerUtils

java.lang.Object
org.apache.polaris.service.catalog.iceberg.CatalogHandlerUtils

@ApplicationScoped public class CatalogHandlerUtils extends Object
CODE_COPIED_TO_POLARIS Copied from CatalogHandler in Iceberg 1.8.0 Contains a collection of utilities related to managing Iceberg entities
  • Constructor Summary

    Constructors
    Constructor
    Description
    CatalogHandlerUtils(int maxCommitRetries, boolean rollbackCompactionEnabled)
     
    CatalogHandlerUtils(org.apache.polaris.core.context.RealmContext realmContext, org.apache.polaris.core.config.PolarisConfigurationStore configurationStore)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.iceberg.TableMetadata
    commit(org.apache.iceberg.TableOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request)
     
    protected org.apache.iceberg.view.ViewMetadata
    commit(org.apache.iceberg.view.ViewOperations ops, org.apache.iceberg.rest.requests.UpdateTableRequest request)
     
    org.apache.iceberg.rest.responses.CreateNamespaceResponse
    createNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.rest.requests.CreateNamespaceRequest request)
     
    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)
     
    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)
     
    void
    dropNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace)
     
    void
    dropTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident)
     
    void
    dropView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
     
    org.apache.iceberg.rest.responses.ListNamespacesResponse
    listNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent)
     
    org.apache.iceberg.rest.responses.ListNamespacesResponse
    listNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent, String pageToken, Integer pageSize)
     
    org.apache.iceberg.rest.responses.ListTablesResponse
    listTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace)
     
    org.apache.iceberg.rest.responses.ListTablesResponse
    listTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize)
     
    org.apache.iceberg.rest.responses.ListTablesResponse
    listViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace)
     
    org.apache.iceberg.rest.responses.ListTablesResponse
    listViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize)
     
    org.apache.iceberg.rest.responses.GetNamespaceResponse
    loadNamespace(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace)
     
    org.apache.iceberg.rest.responses.LoadTableResponse
    loadTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident)
     
    org.apache.iceberg.rest.responses.LoadViewResponse
    loadView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
     
    void
    namespaceExists(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace namespace)
     
    void
    purgeTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident)
     
    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)
     
    void
    renameTable(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request)
     
    void
    renameView(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.rest.requests.RenameTableRequest request)
     
    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)
     
    void
    tableExists(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.TableIdentifier ident)
     
    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)
     
    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)
     
    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)
     
    void
    viewExists(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.TableIdentifier viewIdentifier)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public org.apache.iceberg.rest.responses.ListNamespacesResponse listNamespaces(org.apache.iceberg.catalog.SupportsNamespaces catalog, org.apache.iceberg.catalog.Namespace parent, String pageToken, Integer pageSize)
    • 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

      public org.apache.iceberg.rest.responses.ListTablesResponse listTables(org.apache.iceberg.catalog.Catalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize)
    • 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

      public org.apache.iceberg.rest.responses.ListTablesResponse listViews(org.apache.iceberg.catalog.ViewCatalog catalog, org.apache.iceberg.catalog.Namespace namespace, String pageToken, Integer pageSize)
    • 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)