Search in sources :

Example 31 with DirectByteBufferStream

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

the class DirectMessageReader method readFloatArray.

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

Example 32 with DirectByteBufferStream

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

the class DirectMessageReader method readFloat.

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

Example 33 with DirectByteBufferStream

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

the class DirectMessageReader method readCharArray.

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

Example 34 with DirectByteBufferStream

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

the class DirectMessageReader method readDouble.

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

Example 35 with DirectByteBufferStream

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

the class DirectMessageReader method readDoubleArray.

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