Search in sources :

Example 21 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 22 with DirectByteBufferStream

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

the class DirectMessageReader method readBoolean.

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

Example 23 with DirectByteBufferStream

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

the class DirectMessageReader method readLong.

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

Example 24 with DirectByteBufferStream

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

the class DirectMessageReader method readString.

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

Example 25 with DirectByteBufferStream

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

the class DirectMessageReader method readMap.

/**
 * {@inheritDoc}
 */
@Override
public <M extends Map<?, ?>> M readMap(String name, MessageCollectionItemType keyType, MessageCollectionItemType valType, boolean linked) {
    DirectByteBufferStream stream = state.item().stream;
    M map = stream.readMap(keyType, valType, linked, this);
    lastRead = stream.lastFinished();
    return map;
}
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