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();
}
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;
}
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;
}
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;
}
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;
}
Aggregations