Search in sources :

Example 26 with DirectByteBufferStream

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

the class DirectMessageReader method readShort.

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

Example 27 with DirectByteBufferStream

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

the class DirectMessageReader method readBooleanArray.

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

Example 28 with DirectByteBufferStream

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

the class DirectMessageReader method readIgniteUuid.

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

Example 29 with DirectByteBufferStream

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

the class DirectMessageReader method readShortArray.

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

Example 30 with DirectByteBufferStream

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

the class DirectMessageReader method readByteArray.

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

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