Package alluxio

Interface StorageTierAssoc


  • public interface StorageTierAssoc
    A two-way mapping between storage tier aliases and ordinal numbers from configuration.
    • Method Detail

      • getAlias

        java.lang.String getAlias​(int ordinal)
        Parameters:
        ordinal - a storage tier ordinal
        Returns:
        the storage tier alias matching the given ordinal
      • getOrdinal

        int getOrdinal​(java.lang.String alias)
        Parameters:
        alias - a storage tier alias
        Returns:
        the storage tier ordinal matching the given alias
      • size

        int size()
        Returns:
        the size of the alias-ordinal mapping
      • getOrderedStorageAliases

        java.util.List<java.lang.String> getOrderedStorageAliases()
        Returns:
        a list of storage tier aliases in order of their ordinal value