| 构造器和说明 |
|---|
DirectoryListing()
default constructor
|
DirectoryListing(HdfsFileStatus[] partialListing,
int remainingEntries)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public DirectoryListing()
public DirectoryListing(HdfsFileStatus[] partialListing, int remainingEntries)
partialListing - a partial listing of a directoryremainingEntries - number of entries that are left to be listedpublic HdfsFileStatus[] getPartialListing()
public int getRemainingEntries()
public boolean hasMore()
public byte[] getLastName()
public void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionCopyright © 2009 The Apache Software Foundation