Package | Description |
---|---|
org.apache.hadoop.hdfs.server.federation.resolver |
The resolver package contains indepedent data resolvers used in HDFS
federation.
|
org.apache.hadoop.hdfs.server.federation.resolver.order |
A federated location can be resolved to multiple subclusters.
|
Modifier and Type | Method and Description |
---|---|
PathLocation |
MountTableResolver.getDestinationForPath(String path) |
PathLocation |
MultipleDestinationMountTableResolver.getDestinationForPath(String path) |
PathLocation |
MountTableResolver.lookupLocation(String path)
Build the path location to insert into the cache atomically.
|
Constructor and Description |
---|
PathLocation(PathLocation other)
Create a path location from another path.
|
PathLocation(PathLocation other,
String firstNsId)
Create a path location from another path with the destinations sorted.
|
Modifier and Type | Method and Description |
---|---|
protected String |
AvailableSpaceResolver.chooseFirstNamespace(String path,
PathLocation loc) |
protected abstract String |
RouterResolver.chooseFirstNamespace(String path,
PathLocation loc)
Choose the first namespace from queried subcluster mapping info.
|
protected String |
LocalResolver.chooseFirstNamespace(String path,
PathLocation loc)
Get the local name space.
|
String |
HashResolver.getFirstNamespace(String path,
PathLocation loc)
Use the result from consistent hashing locator to prioritize the locations
for a path.
|
String |
RouterResolver.getFirstNamespace(String path,
PathLocation loc) |
String |
OrderedResolver.getFirstNamespace(String path,
PathLocation loc)
Get the first namespace based on this resolver approach.
|
String |
HashFirstResolver.getFirstNamespace(String path,
PathLocation loc) |
String |
RandomResolver.getFirstNamespace(String path,
PathLocation loc)
Get a random name space from the path.
|
Copyright © 2020 Apache Software Foundation. All rights reserved.