|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.protocol.DirectoryListing
@InterfaceAudience.Private @InterfaceStability.Evolving public class DirectoryListing
This class defines a partial listing of a directory to support iterative directory listing.
Constructor Summary | |
---|---|
DirectoryListing()
default constructor |
|
DirectoryListing(HdfsFileStatus[] partialListing,
int remainingEntries)
constructor |
Method Summary | |
---|---|
byte[] |
getLastName()
Get the last name in this list |
HdfsFileStatus[] |
getPartialListing()
Get the partial listing of file status |
int |
getRemainingEntries()
Get the number of remaining entries that are left to be listed |
boolean |
hasMore()
Check if there are more entries that are left to be listed |
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryListing()
public DirectoryListing(HdfsFileStatus[] partialListing, int remainingEntries)
partialListing
- a partial listing of a directoryremainingEntries
- number of entries that are left to be listedMethod Detail |
---|
public HdfsFileStatus[] getPartialListing()
public int getRemainingEntries()
public boolean hasMore()
public byte[] getLastName()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |