@InterfaceAudience.Private @InterfaceStability.Evolving public class HdfsFileStatus extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_NAME |
Constructor and Description |
---|
HdfsFileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
long access_time,
FsPermission permission,
String owner,
String group,
byte[] symlink,
byte[] path,
long fileId,
int childrenNum)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime()
Get the access time of the file.
|
long |
getBlockSize()
Get the block size of the file.
|
int |
getChildrenNum() |
long |
getFileId() |
String |
getFullName(String parent)
Get the string representation of the full path name
|
Path |
getFullPath(Path parent)
Get the full path
|
String |
getGroup()
Get the group associated with the file.
|
long |
getLen()
Get the length of this file, in bytes.
|
String |
getLocalName()
Get the string representation of the local name
|
byte[] |
getLocalNameInBytes()
Get the Java UTF8 representation of the local name
|
long |
getModificationTime()
Get the modification time of the file.
|
String |
getOwner()
Get the owner of the file.
|
FsPermission |
getPermission()
Get FsPermission associated with the file.
|
short |
getReplication()
Get the replication factor of a file.
|
String |
getSymlink()
Get the string representation of the symlink.
|
byte[] |
getSymlinkInBytes() |
boolean |
isDir()
Is this a directory?
|
boolean |
isEmptyLocalName()
Check if the local name is empty
|
boolean |
isSymlink()
Is this a symbolic link?
|
FileStatus |
makeQualified(URI defaultUri,
Path path) |
public HdfsFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, byte[] symlink, byte[] path, long fileId, int childrenNum)
length
- the number of bytes the file hasisdir
- if the path is a directoryblock_replication
- the replication factorblocksize
- the block sizemodification_time
- modification timeaccess_time
- access timepermission
- permissionowner
- the owner of the pathgroup
- the group of the pathpath
- the local name in java UTF8 encoding the same as that in-memoryfileId
- the file idpublic final long getLen()
public final boolean isDir()
public boolean isSymlink()
public final long getBlockSize()
public final short getReplication()
public final long getModificationTime()
public final long getAccessTime()
public final FsPermission getPermission()
public final String getOwner()
public final String getGroup()
public final boolean isEmptyLocalName()
public final String getLocalName()
public final byte[] getLocalNameInBytes()
public final String getFullName(String parent)
parent
- the parent pathpublic final Path getFullPath(Path parent)
parent
- the parent pathpublic final String getSymlink()
public final byte[] getSymlinkInBytes()
public final long getFileId()
public final int getChildrenNum()
public final FileStatus makeQualified(URI defaultUri, Path path)
Copyright © 2013 Apache Software Foundation. All rights reserved.