Package io.delta.kernel.utils
Class FileStatus
Object
io.delta.kernel.utils.FileStatus
- Direct Known Subclasses:
DataFileStatus
Class for encapsulating metadata about a file in Delta Lake table.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the modification time of the file in epoch millis.getPath()Get the path to the file.longgetSize()Get the size of the file in bytes.static FileStatusCreate aFileStatuswith the given path, size and modification time.
-
Method Details
-
getPath
Get the path to the file.- Returns:
- Fully qualified file path
-
getSize
public long getSize()Get the size of the file in bytes.- Returns:
- File size in bytes.
-
getModificationTime
public long getModificationTime()Get the modification time of the file in epoch millis.- Returns:
- Modification time in epoch millis
-
of
Create aFileStatuswith the given path, size and modification time.- Parameters:
path- Fully qualified file path.size- File size in bytesmodificationTime- Modification time of the file in epoch millis
-