org.apache.hadoop.fs
Interface FileStatus

All Known Implementing Classes:
HftpFileSystem.HftpFileStatus

public interface FileStatus

Interface that represents the client side information for a file.


Method Summary
 long getBlockSize()
          Get the block size of the file.
 long getLen()
           
 long getModificationTime()
          Get the modification time of the file.
 short getReplication()
          Get the replication factor of a file.
 boolean isDir()
          Is this a directory?
 

Method Detail

getLen

long getLen()

isDir

boolean isDir()
Is this a directory?

Returns:
true if this is a directory

getBlockSize

long getBlockSize()
Get the block size of the file.

Returns:
the number of bytes

getReplication

short getReplication()
Get the replication factor of a file.

Returns:
the replication factor of a file.

getModificationTime

long getModificationTime()
Get the modification time of the file.

Returns:
the modification time of file.


Copyright © 2006 The Apache Software Foundation