Package org.apache.drill.exec.alias
Class NoopAliasRegistry
java.lang.Object
org.apache.drill.exec.alias.NoopAliasRegistry
- All Implemented Interfaces:
AutoCloseable
,AliasRegistry
Implementation of
AliasRegistry
that does nothing.-
Field 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.getUserAliases
(String userName) Returns aliases table for specifieduserName
.
-
Field Details
-
INSTANCE
-
-
Method Details
-
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
-