Package alluxio
Interface StorageTierAssoc
-
public interface StorageTierAssoc
A two-way mapping between storage tier aliases and ordinal numbers from configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAlias(int ordinal)
java.util.List<java.lang.String>
getOrderedStorageAliases()
int
getOrdinal(java.lang.String alias)
java.util.List<Pair<BlockStoreLocation,BlockStoreLocation>>
intersectionList()
int
size()
-
-
-
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
-
intersectionList
java.util.List<Pair<BlockStoreLocation,BlockStoreLocation>> intersectionList()
- Returns:
- list of intersections between tier levels
-
-