DfsPathCapabilities (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.client, class: DfsPathCapabilities

Package org.apache.hadoop.hdfs.client

# Class DfsPathCapabilities

java.lang.Object
org.apache.hadoop.hdfs.client.DfsPathCapabilities

public final class DfsPathCapabilities extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Optional<Boolean>`
  `hasPathCapability(org.apache.hadoop.fs.Path path, String capability)`
  Common implementation of `hasPathCapability` for DFS and webhdfs.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### hasPathCapability

    public static Optional<Boolean> hasPathCapability(org.apache.hadoop.fs.Path path, String capability)
    Common implementation of `hasPathCapability` for DFS and webhdfs.
    Parameters:
      `path` - path to check
      `capability` - capability
    Returns:
      either a value to return or, if empty, a cue for the FS to pass up to its superclass.