Interface PrefixManager

All Superinterfaces:
IOzoneAcl
All Known Implementing Classes:
PrefixManagerImpl

public interface PrefixManager extends IOzoneAcl
Handles prefix commands. //TODO: support OzoneManagerFS for ozfs optimization using prefix tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.apache.hadoop.ozone.om.helpers.OmPrefixInfo>
    Get the list of path components that match with obj's path.
    org.apache.hadoop.ozone.om.OMMetadataManager
    Returns the metadataManager.

    Methods inherited from interface org.apache.hadoop.ozone.om.IOzoneAcl

    checkAccess, getAcl
  • Method Details

    • getMetadataManager

      org.apache.hadoop.ozone.om.OMMetadataManager getMetadataManager()
      Returns the metadataManager.
      Returns:
      OMMetadataManager.
    • getLongestPrefixPath

      List<org.apache.hadoop.ozone.om.helpers.OmPrefixInfo> getLongestPrefixPath(String path)
      Get the list of path components that match with obj's path. longest prefix. Note: the number of the entries include a root "/" so if you have a longtest prefix path /a/b/c/ the returned list will be ["/", "a", "b", "c"]
      Parameters:
      path - ozone object path
      Returns:
      list of longest path components that matches obj's path.