Search in sources :

Example 1 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)

Example 2 with DirectByteBufferStream

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

the class DirectMessageWriter method writeLong.

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

Example 3 with DirectByteBufferStream

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

the class DirectMessageWriter method writeObjectArray.

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

Example 4 with DirectByteBufferStream

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

the class DirectMessageReader method readBitSet.

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

Example 5 with DirectByteBufferStream

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

the class DirectMessageWriter method writeDoubleArray.

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

Aggregations

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