Package org.apache.flink.core.fs
Interface FileStatus
-
- All Known Subinterfaces:
LocatedFileStatus
- All Known Implementing Classes:
HadoopFileStatus
,LocalFileStatus
,LocatedHadoopFileStatus
@Public public interface FileStatus
Interface that represents the client side information for a file independent of the file system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAccessTime()
Get the access time of the file.long
getBlockSize()
Get the block size of the file.long
getLen()
Return the length of this file.long
getModificationTime()
Get the modification time of the file.Path
getPath()
Returns the corresponding Path to the FileStatus.short
getReplication()
Get the replication factor of a file.boolean
isDir()
Checks if this object represents a directory.
-
-
-
Method Detail
-
getLen
long getLen()
Return the length of this file.- Returns:
- the length of this file
-
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 in milliseconds since January 1, 1970 UTC.
-
getAccessTime
long getAccessTime()
Get the access time of the file.- Returns:
- the access time of file in milliseconds since January 1, 1970 UTC.
-
isDir
boolean isDir()
Checks if this object represents a directory.- Returns:
true
if this is a directory,false
otherwise
-
getPath
Path getPath()
Returns the corresponding Path to the FileStatus.- Returns:
- the corresponding Path to the FileStatus
-
-