public final class IgfsFileImpl extends Object implements IgfsFile, Externalizable, Binarylizable
| Constructor and Description |
|---|
IgfsFileImpl()
Empty constructor required by
Externalizable. |
IgfsFileImpl(IgfsFile igfsFile,
long grpBlockSize)
A copy constructor.
|
IgfsFileImpl(IgfsPath path,
IgfsEntryInfo info,
long globalGrpBlockSize)
Constructs directory info.
|
| 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 |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
readExternal(ObjectInput in)
Reads object from data input.
|
String |
toString() |
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
void |
writeExternal(ObjectOutput out)
Writes object to data output.
|
public IgfsFileImpl()
Externalizable.public IgfsFileImpl(IgfsFile igfsFile, long grpBlockSize)
igfsFile, but the groupBlockSize
which is specified separately.igfsFile - The file to copy.grpBlockSize - Group block size.public IgfsFileImpl(IgfsPath path, IgfsEntryInfo info, long globalGrpBlockSize)
path - Path.info - Entry info.globalGrpBlockSize - Global group block size.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.IOExceptionpublic void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary in interface Binarylizablewriter - Binary object writer.BinaryObjectException - In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary in interface Binarylizablereader - Binary object reader.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016