public class FileStatusEntry
extends org.apache.hadoop.fs.FileStatus
| Modifier and Type | Field and Description |
|---|---|
com.google.common.base.Optional<org.apache.hadoop.fs.FileStatus> |
_fileStatus |
| Constructor and Description |
|---|
FileStatusEntry(org.apache.hadoop.fs.Path path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compare if this object is equal to another object
|
FileStatusEntry[] |
getChildren()
Return the directory's files.
|
int |
getLevel()
Return the level
|
FileStatusEntry |
getParent()
Return the parent entry.
|
org.apache.hadoop.fs.Path |
getPath()
Return the path from the instance FileStatus variable
|
int |
hashCode()
Returns a hash code value for the object, which is defined as
the hash code of the path name.
|
boolean |
isDirectory()
Return whether the path is a directory from the instance FileStatus variable.
|
boolean |
isExists()
Indicate whether the file existed the last time it
was checked.
|
FileStatusEntry |
newChildInstance(org.apache.hadoop.fs.Path path)
Create a new child instance.
|
boolean |
refresh(org.apache.hadoop.fs.Path path) |
void |
setChildren(FileStatusEntry[] children)
Set the directory's files.
|
compareTo, getAccessTime, getBlockSize, getGroup, getLen, getModificationTime, getOwner, getPermission, getReplication, getSymlink, isDir, isFile, isSymlink, readFields, setGroup, setOwner, setPath, setPermission, setSymlink, toString, writepublic com.google.common.base.Optional<org.apache.hadoop.fs.FileStatus> _fileStatus
public FileStatusEntry(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic boolean refresh(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic FileStatusEntry newChildInstance(org.apache.hadoop.fs.Path path) throws IOException
Custom implementations should override this method to return a new instance of the appropriate type.
path - The child fileIOExceptionpublic FileStatusEntry getParent()
public int getLevel()
public FileStatusEntry[] getChildren()
public void setChildren(FileStatusEntry[] children)
children - This directory's files, may be nullpublic boolean isExists()
public org.apache.hadoop.fs.Path getPath()
getPath in class org.apache.hadoop.fs.FileStatuspublic boolean isDirectory()
isDirectory in class org.apache.hadoop.fs.FileStatuspublic 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.FileStatus