Search in sources :

Example 16 with DirectByteBufferStream

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

the class DirectMessageWriter method writeFloat.

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

Example 17 with DirectByteBufferStream

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

the class DirectMessageReader method readIntArray.

/**
 * {@inheritDoc}
 */
@Nullable
@Override
public int[] readIntArray(String name) {
    DirectByteBufferStream stream = state.item().stream;
    int[] arr = stream.readIntArray();
    lastRead = stream.lastFinished();
    return arr;
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream) Nullable(org.jetbrains.annotations.Nullable)

Example 18 with DirectByteBufferStream

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

the class DirectMessageReader method readLongArray.

/**
 * {@inheritDoc}
 */
@Nullable
@Override
public long[] readLongArray(String name) {
    DirectByteBufferStream stream = state.item().stream;
    long[] arr = stream.readLongArray();
    lastRead = stream.lastFinished();
    return arr;
}
Also used : DirectByteBufferStream(org.apache.ignite.internal.direct.stream.DirectByteBufferStream) Nullable(org.jetbrains.annotations.Nullable)

Example 19 with DirectByteBufferStream

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

the class DirectMessageReader method readByte.

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

Example 20 with DirectByteBufferStream

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

the class DirectMessageReader method readInt.

/**
 * {@inheritDoc}
 */
@Override
public int readInt(String name) {
    DirectByteBufferStream stream = state.item().stream;
    int val = stream.readInt();
    lastRead = stream.lastFinished();
    return val;
}
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