Package org.apache.drill.exec.alias
Interface AliasRegistry
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
NoopAliasRegistry
,PersistentAliasRegistry
Registry for public and user-owned aliases.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates if required public aliases table.void
createUserAliases
(String userName) Creates if required aliases table for specifieduserName
.void
Deletes public aliases table.void
deleteUserAliases
(String userName) Deletes aliases table for specifieduserName
.Returns iterator for aliases table entries.Returns public aliases table.getUserAliases
(String userName) Returns aliases table for specifieduserName
.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getUserAliases
Returns aliases table for specifieduserName
.- Parameters:
userName
- name of the user whose aliases table should be obtained- Returns:
- aliases table for specified
userName
-
getPublicAliases
Aliases getPublicAliases()Returns public aliases table. -
createUserAliases
Creates if required aliases table for specifieduserName
.- Parameters:
userName
- name of the user whose aliases table should be created
-
createPublicAliases
void createPublicAliases()Creates if required public aliases table. -
deleteUserAliases
Deletes aliases table for specifieduserName
.- Parameters:
userName
- name of the user whose aliases table should be removed
-
deletePublicAliases
void deletePublicAliases()Deletes public aliases table. -
getAllAliases
Returns iterator for aliases table entries.
-