@Evolving public class FileStatus extends Object
| Modifier and Type | Method and Description |
|---|---|
long |
getModificationTime()
Get the modification time of the file in epoch millis.
|
String |
getPath()
Get the path to the file.
|
long |
getSize()
Get the size of the file in bytes.
|
static FileStatus |
of(String path,
long size,
long modificationTime)
Create a
FileStatus with the given path, size and modification time. |
public String getPath()
public long getSize()
public long getModificationTime()
public static FileStatus of(String path, long size, long modificationTime)
FileStatus with the given path, size and modification time.path - Fully qualified file path.size - File size in bytesmodificationTime - Modification time of the file in epoch millis