Search in sources :

Example 41 with DirectByteBufferStream

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

the class DirectMessageWriter method writeMap.

/**
 * {@inheritDoc}
 */
@Override
public <K, V> boolean writeMap(String name, Map<K, V> map, MessageCollectionItemType keyType, MessageCollectionItemType valType) {
    DirectByteBufferStream stream = state.item().stream;
    stream.writeMap(map, keyType, valType, this);
    return stream.lastFinished();
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream)

Example 42 with DirectByteBufferStream

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

the class DirectMessageWriter method writeBoolean.

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

Example 43 with DirectByteBufferStream

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

the class DirectMessageWriter method writeByteArray.

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

Example 44 with DirectByteBufferStream

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

the class DirectMessageWriter method writeBitSet.

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

Example 45 with DirectByteBufferStream

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

the class DirectMessageWriter method writeBooleanArray.

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