CanSetDropBehind (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, interface: CanSetDropBehind

Package org.apache.hadoop.fs

# Interface CanSetDropBehind

All Known Implementing Classes:
  `FSDataInputStream`, `FSDataOutputStream`, `HdfsDataInputStream`, `HdfsDataOutputStream`

@Public @Evolving public interface CanSetDropBehind

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setDropBehind(Boolean dropCache)`
  Configure whether the stream should drop the cache.

- ## Method Details

  - ### setDropBehind

    void setDropBehind(Boolean dropCache) throws IOException, UnsupportedOperationException
    Configure whether the stream should drop the cache.
    Parameters:
      `dropCache` - Whether to drop the cache. null means to use the default value.
    Throws:
      `IOException` - If there was an error changing the dropBehind setting. UnsupportedOperationException If this stream doesn't support setting the drop-behind.
      `UnsupportedOperationException`