public final class IgfsFileImpl extends Object implements IgfsFile, Externalizable
| Constructor and Description |
|---|
IgfsFileImpl()
Empty constructor required by
Externalizable. |
IgfsFileImpl(IgfsPath path,
IgfsFileInfo info,
long globalGrpBlockSize)
Constructs directory info.
|
IgfsFileImpl(IgfsPath path,
IgfsListingEntry entry,
long globalGrpSize)
Constructs file instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
accessTime()
Gets file last access time.
|
int |
blockSize()
Gets file's data block size.
|
boolean |
equals(Object o) |
IgniteUuid |
fileId() |
long |
groupBlockSize()
Gets file group block size (i.e. block size * group size).
|
int |
hashCode() |
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.
|
void |
readExternal(ObjectInput in)
Reads object from data input.
|
String |
toString() |
void |
writeExternal(ObjectOutput out)
Writes object to data output.
|
public IgfsFileImpl()
Externalizable.public IgfsFileImpl(IgfsPath path, IgfsFileInfo info, long globalGrpBlockSize)
path - Path.public IgfsFileImpl(IgfsPath path, IgfsListingEntry entry, long globalGrpSize)
path - Path.entry - Listing entry.public IgfsPath path()
public IgniteUuid fileId()
public boolean isFile()
public boolean isDirectory()
isDirectory in interface IgfsFileTrue if this is a directory.public long length()
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.public String property(String name, @Nullable String dfltVal)
public Map<String,String> properties()
properties in interface IgfsFilepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface Externalizableout - Data output.IOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface Externalizablein - Data input.IOException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015