Search in sources :

Example 11 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, long[] val, int len) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeLongArray(val, len);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 12 with DirectByteBufferStream

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

the class DirectMessageWriter method writeUuid.

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

Example 13 with DirectByteBufferStream

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

the class DirectMessageWriter method writeChar.

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

Example 14 with DirectByteBufferStream

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

the class DirectMessageWriter method writeInt.

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

Example 15 with DirectByteBufferStream

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

the class DirectMessageWriter method writeString.

/**
 * {@inheritDoc}
 */
@Override
public boolean writeString(String name, String val) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeString(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