|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.FileStatus org.apache.hadoop.fs.LocatedFileStatus
@InterfaceAudience.Public @InterfaceStability.Evolving public class LocatedFileStatus
This class defines a FileStatus that includes a file's block locations.
Constructor Summary | |
---|---|
LocatedFileStatus(FileStatus stat,
BlockLocation[] locations)
Constructor |
|
LocatedFileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
long access_time,
FsPermission permission,
String owner,
String group,
Path symlink,
Path path,
BlockLocation[] locations)
Constructor |
Method Summary | |
---|---|
int |
compareTo(Object o)
Compare this object to another object |
boolean |
equals(Object o)
Compare if this object is equal to another object |
BlockLocation[] |
getBlockLocations()
Get the file's block locations |
int |
hashCode()
Returns a hash code value for the object, which is defined as the hash code of the path name. |
Methods inherited from class org.apache.hadoop.fs.FileStatus |
---|
getAccessTime, getBlockSize, getGroup, getLen, getModificationTime, getOwner, getPath, getPermission, getReplication, getSymlink, isDir, isDirectory, isFile, isSymlink, readFields, setGroup, setOwner, setPath, setPermission, setSymlink, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocatedFileStatus(FileStatus stat, BlockLocation[] locations) throws IOException
stat
- a file statuslocations
- a file's block locations
IOException
public LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, BlockLocation[] locations)
length
- a file's lengthisdir
- if the path is a directoryblock_replication
- the file's replication factorblocksize
- a file's block sizemodification_time
- a file's modification timeaccess_time
- a file's access timepermission
- a file's permissionowner
- a file's ownergroup
- a file's groupsymlink
- symlink if the path is a symbolic linkpath
- the path's qualified namelocations
- a file's block locationsMethod Detail |
---|
public BlockLocation[] getBlockLocations()
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class FileStatus
o
- the object to be compared.
ClassCastException
- if the specified object's is not of
type FileStatuspublic boolean equals(Object o)
equals
in class FileStatus
o
- the object to be compared.
public int hashCode()
hashCode
in class FileStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |