Interface BatchListingOperations


@Public @Unstable public interface BatchListingOperations
Interface filesystems MAY implement to offer a batched list. If implemented, filesystems SHOULD declare CommonPathCapabilities.FS_EXPERIMENTAL_BATCH_LISTING to be a supported path capability.
  • Method Details

    • batchedListStatusIterator

      org.apache.hadoop.fs.RemoteIterator<PartialListing<FileStatus>> batchedListStatusIterator(List<Path> paths) throws IOException
      Batched listing API that returns PartialListings for the passed Paths.
      Parameters:
      paths - List of paths to list.
      Returns:
      RemoteIterator that returns corresponding PartialListings.
      Throws:
      IOException - failure
    • batchedListLocatedStatusIterator

      org.apache.hadoop.fs.RemoteIterator<PartialListing<LocatedFileStatus>> batchedListLocatedStatusIterator(List<Path> paths) throws IOException
      Batched listing API that returns PartialListings for the passed Paths. The PartialListing will contain LocatedFileStatus entries with locations.
      Parameters:
      paths - List of paths to list.
      Returns:
      RemoteIterator that returns corresponding PartialListings.
      Throws:
      IOException - failure