@InterfaceAudience.Public @InterfaceStability.Evolving public class LocatedFileStatus extends FileStatus
Constructor and Description |
---|
LocatedFileStatus() |
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(FileStatus o)
Compare this FileStatus to another FileStatus
|
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()
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(FileStatus o)
compareTo
in interface Comparable<FileStatus>
compareTo
in class FileStatus
o
- the FileStatus to be compared.public boolean equals(Object o)
equals
in class FileStatus
o
- the object to be compared.public int hashCode()
hashCode
in class FileStatus
Copyright © 2018 Apache Software Foundation. All rights reserved.