Package org.apache.drill.exec.alias
Class PersistentAliasesTable
java.lang.Object
org.apache.drill.exec.alias.PersistentAliasesTable
- All Implemented Interfaces:
Aliases
Implementation of aliases table that updates its version in persistent store after modifications.
-
Constructor Summary
ConstructorDescriptionPersistentAliasesTable
(Map<String, String> aliases, String key, PersistentAliasRegistry.StoreProvider storeProvider) -
Method Summary
Modifier and TypeMethodDescriptionReturns value from aliases table that corresponds to provided alias.Returns iterator for all entries of {@link this} aliases table.getKey()
Key of {@link this} aliases table.boolean
Associates provided alias with provided alias in aliases table.boolean
Removes value for specified alias from aliases table.
-
Constructor Details
-
PersistentAliasesTable
public PersistentAliasesTable(Map<String, String> aliases, String key, PersistentAliasRegistry.StoreProvider storeProvider)
-
-
Method Details
-
getKey
Description copied from interface:Aliases
Key of {@link this} aliases table. -
get
Description copied from interface:Aliases
Returns value from aliases table that corresponds to provided alias. -
put
Description copied from interface:Aliases
Associates provided alias with provided alias in aliases table.- Specified by:
put
in interfaceAliases
- Parameters:
alias
- alias of the value to associate withvalue
- value that will be associated with provided aliasreplace
- whether existing value for the same alias should be replaced- Returns:
true
if provided alias was associated with the provided value in aliases table
-
remove
Description copied from interface:Aliases
Removes value for specified alias from aliases table. -
getAllAliases
Description copied from interface:Aliases
Returns iterator for all entries of {@link this} aliases table.- Specified by:
getAllAliases
in interfaceAliases
-
getAliases
-