|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.FileStatus
public class FileStatus
Interface that represents the client side information for a file.
| Constructor Summary | |
|---|---|
FileStatus()
|
|
FileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
Path path)
|
|
FileStatus(long length,
boolean isdir,
short block_replication,
long blocksize,
long modification_time,
Path path)
|
|
| Method Summary | |
|---|---|
long |
getBlockSize()
Get the block size of the file. |
long |
getLen()
|
long |
getModificationTime()
Get the modification time of the file. |
Path |
getPath()
|
short |
getReplication()
Get the replication factor of a file. |
boolean |
isDir()
Is this a directory? |
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileStatus()
public FileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
Path path)
public FileStatus(long length,
boolean isdir,
short block_replication,
long blocksize,
long modification_time,
Path path)
| Method Detail |
|---|
public long getLen()
public boolean isDir()
public long getBlockSize()
public short getReplication()
public long getModificationTime()
public Path getPath()
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||