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, writeBinary
public IgfsFileInfo()
Externalizable
support.public IgfsFileInfo length(long len)
length
in class IgfsEntryInfo
len
- New length.public IgfsEntryInfo listing(@Nullable Map<String,IgfsListingEntry> listing)
listing
in class IgfsEntryInfo
listing
- Listing.public IgfsFileInfo lock(IgniteUuid lockId)
lock
in class IgfsEntryInfo
lockId
- Lock ID.public IgfsFileInfo unlock(long modificationTime)
unlock
in class IgfsEntryInfo
modificationTime
- Modification time.public IgfsFileInfo fileMap(IgfsFileMap fileMap)
fileMap
in class IgfsEntryInfo
fileMap
- File affinity map.protected IgfsFileInfo copy()
copy
in class IgfsEntryInfo
public boolean isFile()
isFile
in class IgfsEntryInfo
True
if this is a file.public long length()
length
in class IgfsEntryInfo
public int blockSize()
blockSize
in class IgfsEntryInfo
public long blocksCount()
blocksCount
in class IgfsEntryInfo
public Map<String,IgfsListingEntry> listing()
listing
in class IgfsEntryInfo
public boolean hasChildren()
hasChildren
in class IgfsEntryInfo
True
if at least one child exists.public boolean hasChild(String name)
hasChild
in class IgfsEntryInfo
name
- Child name.True
if child with such name exists.public boolean hasChild(String name, IgniteUuid expId)
hasChild
in class IgfsEntryInfo
name
- Child name.expId
- Expected child ID.True
if child with such name exists.@Nullable public IgniteUuid affinityKey()
affinityKey
in class IgfsEntryInfo
null
, usual
mapper procedure is used for block affinity detection.public IgfsFileMap fileMap()
fileMap
in class IgfsEntryInfo
@Nullable public IgniteUuid lockId()
lockId
in class IgfsEntryInfo
null
if file is free of locks.public boolean evictExclude()
evictExclude
in class IgfsEntryInfo
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class IgfsEntryInfo
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class IgfsEntryInfo
IOException
ClassNotFoundException
public void writeBinary(BinaryWriter writer) throws BinaryObjectException
writeBinary
in interface Binarylizable
writer
- Binary object writer.BinaryObjectException
- In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
readBinary
in interface Binarylizable
reader
- Binary object reader.BinaryObjectException
- In case of error.public String toString()
toString
in class IgfsEntryInfo
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017