Search in sources :

Example 46 with DirectByteBufferStream

use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.

the class DirectMessageWriter method writeShort.

/**
 * {@inheritDoc}
 */
@Override
public boolean writeShort(String name, short val) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeShort(val);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 47 with DirectByteBufferStream

use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.

the class DirectMessageWriter method writeLongArray.

/**
 * {@inheritDoc}
 */
@Override
public boolean writeLongArray(String name, @Nullable long[] val) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeLongArray(val);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 48 with DirectByteBufferStream

use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.

the class DirectMessageWriter method writeCollection.

/**
 * {@inheritDoc}
 */
@Override
public <T> boolean writeCollection(String name, Collection<T> col, MessageCollectionItemType itemType) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeCollection(col, itemType, this);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 49 with DirectByteBufferStream

use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.

the class DirectMessageWriter method writeFloatArray.

/**
 * {@inheritDoc}
 */
@Override
public boolean writeFloatArray(String name, @Nullable float[] val) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeFloatArray(val);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 50 with DirectByteBufferStream

use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.

the class DirectMessageWriter method writeByte.

/**
 * {@inheritDoc}
 */
@Override
public boolean writeByte(String name, byte val) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeByte(val);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Aggregations

DirectByteBufferStream (org.apache.ignite.internal.direct.stream.DirectByteBufferStream)51 Nullable (org.jetbrains.annotations.Nullable)9 BitSet (java.util.BitSet)1 UUID (java.util.UUID)1 IgniteUuid (org.apache.ignite.lang.IgniteUuid)1