Class FSODirectoryPathResolver

java.lang.Object
org.apache.hadoop.ozone.om.snapshot.FSODirectoryPathResolver
All Implemented Interfaces:
ObjectPathResolver

public class FSODirectoryPathResolver extends Object implements ObjectPathResolver
Class to resolve absolute paths for FSO DirectoryInfo Objects.
  • Constructor Details

    • FSODirectoryPathResolver

      public FSODirectoryPathResolver(String prefix, long bucketId, org.apache.hadoop.hdds.utils.db.Table<String,org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo> dirInfoTable)
  • 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:
      getAbsolutePathForObjectIDs in interface ObjectPathResolver
      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