FileCollector (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.sps, interface: FileCollector

Package org.apache.hadoop.hdfs.server.namenode.sps

# Interface FileCollector

All Known Implementing Classes:
  `ExternalSPSFilePathCollector`

@Private @Evolving public interface FileCollector
An interface for scanning the directory recursively and collect files under the given directory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `scanAndCollectFiles(long path)`
  This method can be used to scan and collects the files under that directory and adds to the given BlockStorageMovementNeeded.

- ## Method Details

  - ### scanAndCollectFiles

    void scanAndCollectFiles(long path) throws IOException, InterruptedException
    This method can be used to scan and collects the files under that directory and adds to the given BlockStorageMovementNeeded.
    Parameters:
      `path` - - file path id
    Throws:
      `IOException`
      `InterruptedException`