|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.protocol.HdfsFileStatus
@InterfaceAudience.Private @InterfaceStability.Evolving public class HdfsFileStatus
Interface that represents the over the wire information for a file.
Field Summary | |
---|---|
static byte[] |
EMPTY_NAME
|
Constructor Summary | |
---|---|
HdfsFileStatus()
default constructor |
|
HdfsFileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
long access_time,
org.apache.hadoop.fs.permission.FsPermission permission,
String owner,
String group,
byte[] symlink,
byte[] path)
Constructor |
Method Summary | |
---|---|
long |
getAccessTime()
Get the access time of the file. |
long |
getBlockSize()
Get the block size of the file. |
String |
getFullName(String parent)
Get the string representation of the full path name |
org.apache.hadoop.fs.Path |
getFullPath(org.apache.hadoop.fs.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. |
org.apache.hadoop.fs.permission.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. |
boolean |
isDir()
Is this a directory? |
boolean |
isEmptyLocalName()
Check if the local name is empty |
boolean |
isSymlink()
Is this a symbolic link? |
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] EMPTY_NAME
Constructor Detail |
---|
public HdfsFileStatus()
public HdfsFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, org.apache.hadoop.fs.permission.FsPermission permission, String owner, String group, byte[] symlink, byte[] path)
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-memoryMethod Detail |
---|
public 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 org.apache.hadoop.fs.permission.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 path
public final org.apache.hadoop.fs.Path getFullPath(org.apache.hadoop.fs.Path parent)
parent
- the parent path
public final String getSymlink()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |