public final class IgfsFileInfo extends IgfsEntryInfo implements Binarylizable
accessTime, id, modificationTime, props| Constructor and Description |
|---|
IgfsFileInfo()
Externalizable support. |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
affinityKey() |
long |
blocksCount() |
int |
blockSize()
Get single data block size to store this file.
|
protected IgfsFileInfo |
copy()
Copy file info.
|
boolean |
equals(Object obj) |
boolean |
evictExclude()
Get evict exclude flag.
|
IgfsFileMap |
fileMap() |
IgfsFileInfo |
fileMap(IgfsFileMap fileMap)
Update file map.
|
boolean |
hasChild(String name) |
boolean |
hasChild(String name,
IgniteUuid expId) |
boolean |
hasChildren() |
int |
hashCode() |
boolean |
isFile() |
long |
length()
Get file size.
|
IgfsFileInfo |
length(long len)
Update length.
|
Map<String,IgfsListingEntry> |
listing() |
IgfsEntryInfo |
listing(Map<String,IgfsListingEntry> listing)
Update listing.
|
IgfsFileInfo |
lock(IgniteUuid lockId)
Lock file.
|
IgniteUuid |
lockId()
Get lock ID.
|
void |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
IgfsFileInfo |
unlock(long modificationTime)
Unlock file.
|
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
void |
writeExternal(ObjectOutput out) |
accessModificationTime, accessTime, id, isDirectory, modificationTime, properties, properties, readBinary, writeBinarypublic IgfsFileInfo()
Externalizable support.public IgfsFileInfo length(long len)
length in class IgfsEntryInfolen - New length.public IgfsEntryInfo listing(@Nullable Map<String,IgfsListingEntry> listing)
listing in class IgfsEntryInfolisting - Listing.public IgfsFileInfo lock(IgniteUuid lockId)
lock in class IgfsEntryInfolockId - Lock ID.public IgfsFileInfo unlock(long modificationTime)
unlock in class IgfsEntryInfomodificationTime - Modification time.public IgfsFileInfo fileMap(IgfsFileMap fileMap)
fileMap in class IgfsEntryInfofileMap - File affinity map.protected IgfsFileInfo copy()
copy in class IgfsEntryInfopublic boolean isFile()
isFile in class IgfsEntryInfoTrue if this is a file.public long length()
length in class IgfsEntryInfopublic int blockSize()
blockSize in class IgfsEntryInfopublic long blocksCount()
blocksCount in class IgfsEntryInfopublic Map<String,IgfsListingEntry> listing()
listing in class IgfsEntryInfopublic boolean hasChildren()
hasChildren in class IgfsEntryInfoTrue if at least one child exists.public boolean hasChild(String name)
hasChild in class IgfsEntryInfoname - Child name.True if child with such name exists.public boolean hasChild(String name, IgniteUuid expId)
hasChild in class IgfsEntryInfoname - Child name.expId - Expected child ID.True if child with such name exists.@Nullable public IgniteUuid affinityKey()
affinityKey in class IgfsEntryInfonull, usual
mapper procedure is used for block affinity detection.public IgfsFileMap fileMap()
fileMap in class IgfsEntryInfo@Nullable public IgniteUuid lockId()
lockId in class IgfsEntryInfonull if file is free of locks.public boolean evictExclude()
evictExclude in class IgfsEntryInfopublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class IgfsEntryInfoIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class IgfsEntryInfoIOExceptionClassNotFoundExceptionpublic 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.public String toString()
toString in class IgfsEntryInfo
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019