public final class HadoopFileStatus extends java.lang.Object implements FileStatus
Constructor and Description |
---|
HadoopFileStatus(org.apache.hadoop.fs.FileStatus fileStatus) |
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime()
To get the access time of the file
|
long |
getBlockSize()
To get the length of the block size
|
org.apache.hadoop.fs.FileStatus |
getInternalFileStatus() |
long |
getLen()
To get the length of the filename
|
long |
getModificationTime()
To get the modification time of the file
|
Path |
getPath()
To get the path of the file
|
short |
getReplication()
To get the replication of the file
|
boolean |
isDir()
To check whether it is a directory or not.
|
public HadoopFileStatus(org.apache.hadoop.fs.FileStatus fileStatus)
public long getLen()
getLen
in interface FileStatus
public long getBlockSize()
getBlockSize
in interface FileStatus
public long getAccessTime()
getAccessTime
in interface FileStatus
public long getModificationTime()
getModificationTime
in interface FileStatus
public short getReplication()
getReplication
in interface FileStatus
public org.apache.hadoop.fs.FileStatus getInternalFileStatus()
public Path getPath()
getPath
in interface FileStatus
public boolean isDir()
isDir
in interface FileStatus