use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class IgfsBlockKey method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter out = writer.rawWriter();
BinaryUtils.writeIgniteUuid(out, fileId);
BinaryUtils.writeIgniteUuid(out, affKey);
out.writeBoolean(evictExclude);
out.writeLong(blockId);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class IgfsFileImpl method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter rawWriter = writer.rawWriter();
IgfsUtils.writePath(rawWriter, path);
rawWriter.writeInt(blockSize);
rawWriter.writeLong(grpBlockSize);
rawWriter.writeLong(len);
IgfsUtils.writeProperties(rawWriter, props);
rawWriter.writeLong(accessTime);
rawWriter.writeLong(modificationTime);
rawWriter.writeByte(flags);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class IgfsFileInfo method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter out = writer.rawWriter();
writeBinary(out);
out.writeInt(blockSize);
out.writeLong(len);
BinaryUtils.writeIgniteUuid(out, lockId);
BinaryUtils.writeIgniteUuid(out, affKey);
out.writeObject(fileMap);
out.writeBoolean(evictExclude);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class VectorBlockKey method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter out = writer.rawWriter();
out.writeUuid(vectorUuid);
out.writeUuid(affinityKey);
out.writeLong(blockId);
}
use of org.apache.ignite.binary.BinaryRawWriter in project ignite by apache.
the class MatrixBlockKey method writeBinary.
/**
* {@inheritDoc}
*/
@Override
public void writeBinary(BinaryWriter writer) throws BinaryObjectException {
BinaryRawWriter out = writer.rawWriter();
out.writeUuid(matrixUuid);
out.writeUuid(affinityKey);
out.writeLong(blockIdRow);
out.writeLong(blockIdCol);
}
Aggregations