use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeString.
/** {@inheritDoc} */
@Override
public boolean writeString(String name, String val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeString(val);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeLong.
/** {@inheritDoc} */
@Override
public boolean writeLong(String name, long val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeLong(val);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeObjectArray.
/** {@inheritDoc} */
@Override
public <T> boolean writeObjectArray(String name, T[] arr, MessageCollectionItemType itemType) {
DirectByteBufferStream stream = state.item().stream;
stream.writeObjectArray(arr, itemType, this);
return stream.lastFinished();
}
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;
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeDoubleArray.
/** {@inheritDoc} */
@Override
public boolean writeDoubleArray(String name, @Nullable double[] val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeDoubleArray(val);
return stream.lastFinished();
}
Aggregations