Skip to content

KeyMapperUtil

Resolve Resource Names Into IDs

Map<SecurableType, Object> mapResourceKeys(
  Map<SecurableType, Object> resourceKeys)
Static Method

mapResourceKeys is a Java class method to be invoked without a reference to a particular object.

Learn more in the Java Language Specification.

mapResourceKeys resolves the given SecurableTypes with their names (resourceKeys) into SecurableTypes with IDs (in the given order).

Resource Keys SecurableType ID Repository
CATALOG, SCHEMA, TABLE TABLE table_id TableRepository
TABLE
(with neither CATALOG nor SCHEMA)
TABLE
SCHEMA
CATALOG
table_id
schema_id
id
TableRepository
SchemaRepository
CatalogRepository
CATALOG, SCHEMA, VOLUME VOLUME volume_id VolumeRepository
VOLUME
(with neither CATALOG nor SCHEMA)
     
CATALOG, SCHEMA, FUNCTION      
FUNCTION
(with neither CATALOG nor SCHEMA)
     
CATALOG, SCHEMA, REGISTERED_MODEL      
REGISTERED_MODEL
(with neither CATALOG nor SCHEMA)
     
CATALOG, SCHEMA SCHEMA schema_id SchemaRepository
SCHEMA
(with no CATALOG)
SCHEMA
CATALOG
schema_id
id
SchemaRepository
CatalogRepository
CATALOG CATALOG id CatalogRepository
METASTORE METASTORE ca7a1095-537c-4f9c-a136-5ca1ab1ec0de MetastoreRepository

mapResourceKeys is used when: