@InterfaceAudience.Private
@InterfaceStability.Evolving
public class S3AFileStatus
extends org.apache.hadoop.fs.FileStatus
getModificationTime().
The subclass is private as it should not be created directly.| Constructor and Description |
|---|
S3AFileStatus(boolean isemptydir,
org.apache.hadoop.fs.Path path,
String owner)
Create a directory status.
|
S3AFileStatus(long length,
long modification_time,
org.apache.hadoop.fs.Path path,
long blockSize,
String owner)
A simple file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compare if this object is equal to another object.
|
long |
getModificationTime()
Get the modification time of the file/directory.
|
int |
hashCode()
Returns a hash code value for the object, which is defined as
the hash code of the path name.
|
boolean |
isEmptyDirectory() |
String |
toString() |
compareTo, getAccessTime, getBlockSize, getGroup, getLen, getOwner, getPath, getPermission, getReplication, getSymlink, isDir, isDirectory, isEncrypted, isFile, isSymlink, readFields, setGroup, setOwner, setPath, setPermission, setSymlink, writepublic S3AFileStatus(boolean isemptydir,
org.apache.hadoop.fs.Path path,
String owner)
isemptydir - is this an empty directory?path - the pathowner - the ownerpublic S3AFileStatus(long length,
long modification_time,
org.apache.hadoop.fs.Path path,
long blockSize,
String owner)
length - file lengthmodification_time - mod timepath - pathblockSize - block sizeowner - ownerpublic boolean isEmptyDirectory()
public boolean equals(Object o)
equals in class org.apache.hadoop.fs.FileStatuso - the object to be compared.public int hashCode()
hashCode in class org.apache.hadoop.fs.FileStatuspublic long getModificationTime()
getModificationTime in class org.apache.hadoop.fs.FileStatuspublic String toString()
toString in class org.apache.hadoop.fs.FileStatusCopyright © 2017 Apache Software Foundation. All Rights Reserved.