Class PersistentAliasesTable

java.lang.Object
org.apache.drill.exec.alias.PersistentAliasesTable
All Implemented Interfaces:
Aliases

public class PersistentAliasesTable extends Object implements Aliases
Implementation of aliases table that updates its version in persistent store after modifications.
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: Aliases
      Key of {@link this} aliases table.
      Specified by:
      getKey in interface Aliases
    • get

      public String get(String alias)
      Description copied from interface: Aliases
      Returns value from aliases table that corresponds to provided alias.
      Specified by:
      get in interface Aliases
      Parameters:
      alias - alias of the value to obtain
      Returns:
      value from aliases table that corresponds to provided alias
    • put

      public boolean put(String alias, String value, boolean replace)
      Description copied from interface: Aliases
      Associates provided alias with provided alias in aliases table.
      Specified by:
      put in interface Aliases
      Parameters:
      alias - alias of the value to associate with
      value - value that will be associated with provided alias
      replace - 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

      public boolean remove(String alias)
      Description copied from interface: Aliases
      Removes value for specified alias from aliases table.
      Specified by:
      remove in interface Aliases
      Parameters:
      alias - alias of the value to remove
      Returns:
      true if the value associated with provided alias was removed from the aliases table
    • getAllAliases

      public Iterator<Map.Entry<String,String>> getAllAliases()
      Description copied from interface: Aliases
      Returns iterator for all entries of {@link this} aliases table.
      Specified by:
      getAllAliases in interface Aliases
    • getAliases

      public Map<String,String> getAliases()