public interface IgfsFile
IGFS
file or directory descriptor. For example, to get information about
a file you would use the following code:
IgfsPath filePath = new IgfsPath("my/working/dir", "file.txt"); // Get metadata about file. IgfsFile file = igfs.info(filePath);
Modifier and Type | Method and Description |
---|---|
long |
accessTime()
Gets file last access time.
|
int |
blockSize()
Gets file's data block size.
|
long |
groupBlockSize()
Gets file group block size (i.e. block size * group size).
|
boolean |
isDirectory()
Check this file is a directory.
|
boolean |
isFile()
Check this file is a data file.
|
long |
length()
Gets file's length.
|
long |
modificationTime()
Gets file last modification time.
|
IgfsPath |
path()
Gets path to file.
|
Map<String,String> |
properties()
Get properties of the file.
|
String |
property(String name)
Get file's property for specified name.
|
@Nullable String |
property(String name,
@Nullable String dfltVal)
Get file's property for specified name.
|
IgfsPath path()
boolean isFile()
True
if this is a data file.boolean isDirectory()
True
if this is a directory.long length()
zero
for directories.int blockSize()
zero
for directories.long groupBlockSize()
long accessTime()
IgniteFileSystem.setTimes(IgfsPath, long, long)
method.
By default last access time equals file creation time.
long modificationTime()
String property(String name) throws IllegalArgumentException
name
- Name of the property.IllegalArgumentException
- If requested property was not found.@Nullable @Nullable String property(String name, @Nullable @Nullable String dfltVal)
name
- Name of the property.dfltVal
- Default value if requested property was not found.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019