Package org.apache.drill.exec.alias
Class PersistentAliasRegistry
java.lang.Object
org.apache.drill.exec.alias.PersistentAliasRegistry
- All Implemented Interfaces:
AutoCloseable
,AliasRegistry
Implementation of
AliasRegistry
that persists aliases tables
to the pre-configured persistent store.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
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.getStore()
getUserAliases
(String userName) Returns aliases table for specifieduserName
.
-
Field Details
-
PUBLIC_ALIASES_KEY
- See Also:
-
-
Constructor Details
-
PersistentAliasRegistry
-
-
Method Details
-
getStore
-
getAllAliases
Description copied from interface:AliasRegistry
Returns iterator for aliases table entries.- Specified by:
getAllAliases
in interfaceAliasRegistry
-
getUserAliases
Description copied from interface:AliasRegistry
Returns aliases table for specifieduserName
.- Specified by:
getUserAliases
in interfaceAliasRegistry
- Parameters:
userName
- name of the user whose aliases table should be obtained- Returns:
- aliases table for specified
userName
-
createUserAliases
Description copied from interface:AliasRegistry
Creates if required aliases table for specifieduserName
.- Specified by:
createUserAliases
in interfaceAliasRegistry
- Parameters:
userName
- name of the user whose aliases table should be created
-
createPublicAliases
public void createPublicAliases()Description copied from interface:AliasRegistry
Creates if required public aliases table.- Specified by:
createPublicAliases
in interfaceAliasRegistry
-
deleteUserAliases
Description copied from interface:AliasRegistry
Deletes aliases table for specifieduserName
.- Specified by:
deleteUserAliases
in interfaceAliasRegistry
- Parameters:
userName
- name of the user whose aliases table should be removed
-
deletePublicAliases
public void deletePublicAliases()Description copied from interface:AliasRegistry
Deletes public aliases table.- Specified by:
deletePublicAliases
in interfaceAliasRegistry
-
getPublicAliases
Description copied from interface:AliasRegistry
Returns public aliases table.- Specified by:
getPublicAliases
in interfaceAliasRegistry
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-