Package org.apache.flink.core.fs
Interface FileStatus
-
- All Known Subinterfaces:
LocatedFileStatus
- All Known Implementing Classes:
LocalFileStatus
@Public public interface FileStatusInterface 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 longgetAccessTime()Get the access time of the file.longgetBlockSize()Get the block size of the file.longgetLen()Return the length of this file.longgetModificationTime()Get the modification time of the file.PathgetPath()Returns the corresponding Path to the FileStatus.shortgetReplication()Get the replication factor of a file.booleanisDir()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:
trueif this is a directory,falseotherwise
-
getPath
Path getPath()
Returns the corresponding Path to the FileStatus.- Returns:
- the corresponding Path to the FileStatus
-
-