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.
|
String |
property(String name,
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 IgfsFile
True
if this is a directory.public int blockSize()
public long groupBlockSize()
groupBlockSize
in interface IgfsFile
public long accessTime()
IgniteFileSystem.setTimes(IgfsPath, long, long)
method.
By default last access time equals file creation time.
accessTime
in interface IgfsFile
public long modificationTime()
modificationTime
in interface IgfsFile
public String property(String name) throws IllegalArgumentException
property
in interface IgfsFile
name
- Name of the property.IllegalArgumentException
- If requested property was not found.@Nullable public String property(String name, @Nullable String dfltVal)
public Map<String,String> properties()
properties
in interface IgfsFile
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017