Package org.apache.hadoop.fs
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 Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.RemoteIterator<PartialListing<LocatedFileStatus>>batchedListLocatedStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.org.apache.hadoop.fs.RemoteIterator<PartialListing<FileStatus>>batchedListStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.
-
Method Details
-
batchedListStatusIterator
org.apache.hadoop.fs.RemoteIterator<PartialListing<FileStatus>> batchedListStatusIterator(List<Path> paths) throws IOException Batched listing API that returnsPartialListings 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 returnsPartialListings for the passed Paths. The PartialListing will containLocatedFileStatusentries with locations.- Parameters:
paths- List of paths to list.- Returns:
- RemoteIterator that returns corresponding PartialListings.
- Throws:
IOException- failure
-