Package alluxio.conf.path
Interface PathConfiguration
-
- All Known Implementing Classes:
PrefixPathConfiguration
public interface PathConfiguration
Path level configuration. AnAlluxioConfiguration
is set for each path pattern. This class matches an Alluxio path against the patterns, then from the configurations of the matched patterns, it chooses the configuration that contains the specified property key and belongs to the best matched pattern. Different implementations have different definitions of the best match.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PathConfiguration
create(java.util.Map<java.lang.String,AlluxioConfiguration> pathConf)
Factory method to create an implementation ofPathConfiguration
.java.util.Optional<AlluxioConfiguration>
getConfiguration(AlluxioURI path, PropertyKey key)
java.util.Set<PropertyKey>
getPropertyKeys(AlluxioURI path)
-
-
-
Method Detail
-
getConfiguration
java.util.Optional<AlluxioConfiguration> getConfiguration(AlluxioURI path, PropertyKey key)
- Parameters:
path
- the Alluxio pathkey
- the property key- Returns:
- the chosen configuration matching the path and containing the key
-
getPropertyKeys
java.util.Set<PropertyKey> getPropertyKeys(AlluxioURI path)
- Parameters:
path
- the Alluxio path- Returns:
- all property keys in the path level configuration that is applicable to path
-
create
static PathConfiguration create(java.util.Map<java.lang.String,AlluxioConfiguration> pathConf)
Factory method to create an implementation ofPathConfiguration
.- Parameters:
pathConf
- the map from paths to path level configurations- Returns:
- the implementation of
PathConfiguration
-
-