Package org.apache.hadoop.ozone.om
Interface PrefixManager
- All Superinterfaces:
IOzoneAcl
- All Known Implementing Classes:
PrefixManagerImpl
Handles prefix commands.
//TODO: support OzoneManagerFS for ozfs optimization using prefix tree.
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.ozone.om.helpers.OmPrefixInfo> getLongestPrefixPath(String path) Get the list of path components that match with obj's path.org.apache.hadoop.ozone.om.OMMetadataManagerReturns 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
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.
-