| Constructor and Description |
|---|
LocalFileSystemIgfsFile(IgfsPath path,
boolean isFile,
boolean isDir,
int blockSize,
long accessTime,
long modTime,
long len,
Map<String,String> props) |
| 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.
|
public LocalFileSystemIgfsFile(IgfsPath path, boolean isFile, boolean isDir, int blockSize, long accessTime, long modTime, long len, Map<String,String> props)
path - IGFS path.isFile - Path is a file.isDir - Path is a directory.blockSize - Block size in bytes.accessTime - Access time in millis.modTime - Modification time in millis.len - File length in bytes.props - Properties.public IgfsPath path()
public boolean isFile()
public boolean isDirectory()
isDirectory in interface IgfsFileTrue if this is a directory.public int blockSize()
public long groupBlockSize()
groupBlockSize in interface IgfsFilepublic long accessTime()
IgniteFileSystem.setTimes(IgfsPath, long, long) method.
By default last access time equals file creation time.
accessTime in interface IgfsFilepublic long modificationTime()
modificationTime in interface IgfsFilepublic String property(String name) throws IllegalArgumentException
property in interface IgfsFilename - Name of the property.IllegalArgumentException - If requested property was not found.@Nullable public @Nullable String property(String name, @Nullable @Nullable String dfltVal)
public Map<String,String> properties()
properties in interface IgfsFile
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020