|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.FileStatus
org.apache.hadoop.tools.CopyListingFileStatus
@InterfaceAudience.Private public final class CopyListingFileStatus
CopyListingFileStatus is a specialized subclass of FileStatus for
attaching additional data members useful to distcp. This class does not
override FileStatus.compareTo(java.lang.Object), because the additional data members
are not relevant to sort order.
| Constructor Summary | |
|---|---|
CopyListingFileStatus()
Default constructor. |
|
CopyListingFileStatus(org.apache.hadoop.fs.FileStatus fileStatus)
Creates a new CopyListingFileStatus by copying the members of the given FileStatus. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
List<org.apache.hadoop.fs.permission.AclEntry> |
getAclEntries()
Returns the full logical ACL. |
Map<String,byte[]> |
getXAttrs()
Returns all xAttrs. |
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
setAclEntries(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries)
Sets optional ACL entries. |
void |
setXAttrs(Map<String,byte[]> xAttrs)
Sets optional xAttrs. |
String |
toString()
|
void |
write(DataOutput out)
|
| Methods inherited from class org.apache.hadoop.fs.FileStatus |
|---|
compareTo, getAccessTime, getBlockSize, getGroup, getLen, getModificationTime, getOwner, getPath, getPermission, getReplication, getSymlink, isDir, isDirectory, isEncrypted, isFile, isSymlink, setGroup, setOwner, setPath, setPermission, setSymlink |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CopyListingFileStatus()
public CopyListingFileStatus(org.apache.hadoop.fs.FileStatus fileStatus)
throws IOException
fileStatus - FileStatus to copy
IOException| Method Detail |
|---|
public List<org.apache.hadoop.fs.permission.AclEntry> getAclEntries()
public void setAclEntries(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries)
aclEntries - Listpublic Map<String,byte[]> getXAttrs()
public void setXAttrs(Map<String,byte[]> xAttrs)
xAttrs - Map
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.fs.FileStatusIOException
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.fs.FileStatusIOExceptionpublic boolean equals(Object o)
equals in class org.apache.hadoop.fs.FileStatuspublic int hashCode()
hashCode in class org.apache.hadoop.fs.FileStatuspublic String toString()
toString in class org.apache.hadoop.fs.FileStatus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||