Search in sources :

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

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

Example 9 with DirectByteBufferStream

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

the class DirectMessageWriter method writeIntArray.

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

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

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