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();
}
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 DirectMessageWriter method writeByteArray.
/**
* {@inheritDoc}
*/
@Override
public boolean writeByteArray(String name, byte[] val, long off, int len) {
DirectByteBufferStream stream = state.item().stream;
stream.writeByteArray(val, off, len);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeIntArray.
/**
* {@inheritDoc}
*/
@Override
public boolean writeIntArray(String name, @Nullable int[] val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeIntArray(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();
}
Aggregations