Package org.apache.hadoop.hdfs.client
Class DfsPathCapabilities
java.lang.Object
org.apache.hadoop.hdfs.client.DfsPathCapabilities
-
Method Summary
Modifier and TypeMethodDescriptionhasPathCapability(org.apache.hadoop.fs.Path path, String capability) Common implementation ofhasPathCapabilityfor DFS and webhdfs.
-
Method Details
-
hasPathCapability
public static Optional<Boolean> hasPathCapability(org.apache.hadoop.fs.Path path, String capability) Common implementation ofhasPathCapabilityfor DFS and webhdfs.- Parameters:
path- path to checkcapability- capability- Returns:
- either a value to return or, if empty, a cue for the FS to pass up to its superclass.
-