public interface PathConfiguration
AlluxioConfiguration
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.Modifier and Type | Method and Description |
---|---|
static PathConfiguration |
create(Map<String,AlluxioConfiguration> pathConf)
Factory method to create an implementation of
PathConfiguration . |
Optional<AlluxioConfiguration> |
getConfiguration(AlluxioURI path,
PropertyKey key) |
Set<PropertyKey> |
getPropertyKeys(AlluxioURI path) |
Optional<AlluxioConfiguration> getConfiguration(AlluxioURI path, PropertyKey key)
path
- the Alluxio pathkey
- the property keySet<PropertyKey> getPropertyKeys(AlluxioURI path)
path
- the Alluxio pathstatic PathConfiguration create(Map<String,AlluxioConfiguration> pathConf)
PathConfiguration
.pathConf
- the map from paths to path level configurationsPathConfiguration
Copyright © 2023. All Rights Reserved.