Package org.apache.drill.exec.alias
Interface Aliases
- All Known Implementing Classes:
EmptyAliases
,PersistentAliasesTable
,ResolvedAliases
public interface Aliases
Aliases table. Provides API for managing and obtaining aliases.
-
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.
-
Method Details
-
getKey
String getKey()Key of {@link this} aliases table. -
get
Returns value from aliases table that corresponds to provided alias.- Parameters:
alias
- alias of the value to obtain- Returns:
- value from aliases table that corresponds to provided alias
-
put
Associates provided alias with provided alias in aliases table.- 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
Removes value for specified alias from aliases table.- Parameters:
alias
- alias of the value to remove- Returns:
true
if the value associated with provided alias was removed from the aliases table
-
getAllAliases
Returns iterator for all entries of {@link this} aliases table.
-