public final class IgfsBlockKey extends Object implements IgfsBaseBlockKey, Message, Externalizable, Binarylizable, Comparable<IgfsBlockKey>
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
IgfsBlockKey()
Empty constructor required for
Externalizable. |
IgfsBlockKey(IgniteUuid fileId,
IgniteUuid affKey,
boolean evictExclude,
long blockId)
Constructs file's binary data block key.
|
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
affinityKey() |
long |
blockId() |
int |
compareTo(IgfsBlockKey o) |
short |
directType()
Gets message type.
|
boolean |
equals(Object o) |
boolean |
evictExclude() |
byte |
fieldsCount()
Gets fields count.
|
int |
fileHash() |
IgniteUuid |
getFileId() |
int |
hashCode() |
void |
onAckReceived()
Method called when ack message received.
|
void |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public IgfsBlockKey(IgniteUuid fileId, @Nullable IgniteUuid affKey, boolean evictExclude, long blockId)
fileId - File ID.affKey - Affinity key.evictExclude - Evict exclude flag.blockId - Block ID.public IgfsBlockKey()
Externalizable.public IgniteUuid getFileId()
public IgniteUuid affinityKey()
affinityKey in interface IgfsBaseBlockKeypublic long blockId()
blockId in interface IgfsBaseBlockKeypublic int fileHash()
fileHash in interface IgfsBaseBlockKeypublic boolean evictExclude()
public void onAckReceived()
onAckReceived in interface Messagepublic int compareTo(@NotNull
IgfsBlockKey o)
compareTo in interface Comparable<IgfsBlockKey>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic 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 boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017