@InterfaceAudience.Public @InterfaceStability.Unstable public class PartialListing<T extends FileStatus> extends Object
A partial listing of the children of a parent directory. Since it is a partial listing, multiple PartialListing may need to be combined to obtain the full listing of a parent directory.
ListingBatch behaves similar to a Future, in that getting the result viaget() will throw an Exception if there was a failure.| Constructor and Description | 
|---|
| PartialListing(Path listedPath,
              List<T> partialListing) | 
| PartialListing(Path listedPath,
              org.apache.hadoop.ipc.RemoteException exception) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<T> | get()Partial listing of the path being listed. | 
| Path | getListedPath()Path being listed. | 
| String | toString() | 
public PartialListing(Path listedPath, org.apache.hadoop.ipc.RemoteException exception)
public List<T> get() throws IOException
IOException - if there was an exception getting the listing.public Path getListedPath()
Copyright © 2023 Apache Software Foundation. All rights reserved.