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
ConstructorsConstructorDescriptionPersistentAliasesTable(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} aliases table.invalid @link
{@link thisgetKey()Key of} aliases table.invalid @link
{@link thisbooleanAssociates provided alias with provided alias in aliases table.booleanRemoves 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:AliasesKey of} aliases table.invalid @link
{@link this -
get
Description copied from interface:AliasesReturns value from aliases table that corresponds to provided alias. -
put
Description copied from interface:AliasesAssociates provided alias with provided alias in aliases table.- Specified by:
putin 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:
trueif provided alias was associated with the provided value in aliases table
-
remove
Description copied from interface:AliasesRemoves value for specified alias from aliases table. -
getAllAliases
Description copied from interface:AliasesReturns iterator for all entries of} aliases table.invalid @link
{@link this- Specified by:
getAllAliasesin interfaceAliases
-
getAliases
-