Class FSODirectoryPathResolver
java.lang.Object
org.apache.hadoop.ozone.om.snapshot.FSODirectoryPathResolver
- All Implemented Interfaces:
ObjectPathResolver
Class to resolve absolute paths for FSO DirectoryInfo Objects.
-
Constructor Summary
ConstructorsConstructorDescriptionFSODirectoryPathResolver(String prefix, long bucketId, org.apache.hadoop.hdds.utils.db.Table<String, org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo> dirInfoTable) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.ozone.om.snapshot.ObjectPathResolver
getAbsolutePathForObjectIDs
-
Constructor Details
-
FSODirectoryPathResolver
-
-
Method Details
-
getAbsolutePathForObjectIDs
public Map<Long,Path> getAbsolutePathForObjectIDs(Optional<Set<Long>> dirObjIds, boolean skipUnresolvedObjs) throws IOException Assuming all dirObjIds belong to a bucket this function resolves absolute path for a given FSO bucket.- Specified by:
getAbsolutePathForObjectIDsin interfaceObjectPathResolver- Parameters:
dirObjIds- Object Ids corresponding to which absolute path is needed.skipUnresolvedObjs- boolean value to skipUnresolved objects when false exception will be thrown.- Returns:
- Map of Path corresponding to provided directory object IDs
- Throws:
IOException
-