@GridInternal public final class IgfsBlockKey extends Object implements Message, Externalizable, Binarylizable, Comparable<IgfsBlockKey>
| 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() |
int |
compareTo(IgfsBlockKey o) |
byte |
directType()
Gets message type.
|
boolean |
equals(Object o) |
boolean |
evictExclude() |
byte |
fieldsCount()
Gets fields count.
|
long |
getBlockId() |
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()
public boolean evictExclude()
public long getBlockId()
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 byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017