@InterfaceAudience.Public @InterfaceStability.Evolving public class LocatedFileStatus extends FileStatus
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAccessTime, getBlockSize, getGroup, getLen, getModificationTime, getOwner, getPath, getPermission, getReplication, getSymlink, isDir, isDirectory, isEncrypted, isFile, isSymlink, readFields, setGroup, setOwner, setPath, setPermission, setSymlink, toString, write
public LocatedFileStatus(FileStatus stat, BlockLocation[] locations) throws IOException
stat
- a file statuslocations
- a file's block locationsIOException
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 locationspublic 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
Copyright © 2015 Apache Software Foundation. All rights reserved.