Search in sources :

Example 26 with BinaryRawWriter

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);
}
Also used : BinaryRawWriter(org.apache.ignite.binary.BinaryRawWriter)

Example 27 with BinaryRawWriter

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);
}
Also used : BinaryRawWriter(org.apache.ignite.binary.BinaryRawWriter)

Example 28 with BinaryRawWriter

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);
}
Also used : BinaryRawWriter(org.apache.ignite.binary.BinaryRawWriter)

Example 29 with BinaryRawWriter

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);
}
Also used : BinaryRawWriter(org.apache.ignite.binary.BinaryRawWriter)

Example 30 with BinaryRawWriter

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);
}
Also used : BinaryRawWriter(org.apache.ignite.binary.BinaryRawWriter)

Aggregations

BinaryRawWriter (org.apache.ignite.binary.BinaryRawWriter)36 Map (java.util.Map)4 HashMap (java.util.HashMap)2 TreeMap (java.util.TreeMap)2 IOException (java.io.IOException)1 Array (java.lang.reflect.Array)1 SimpleEntry (java.util.AbstractMap.SimpleEntry)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 Collection (java.util.Collection)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 LinkedList (java.util.LinkedList)1 Objects (java.util.Objects)1 Set (java.util.Set)1 UUID (java.util.UUID)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 BiConsumer (java.util.function.BiConsumer)1 Consumer (java.util.function.Consumer)1 Function (java.util.function.Function)1