use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeMap.
/**
* {@inheritDoc}
*/
@Override
public <K, V> boolean writeMap(String name, Map<K, V> map, MessageCollectionItemType keyType, MessageCollectionItemType valType) {
DirectByteBufferStream stream = state.item().stream;
stream.writeMap(map, keyType, valType, this);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeBoolean.
/**
* {@inheritDoc}
*/
@Override
public boolean writeBoolean(String name, boolean val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeBoolean(val);
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, @Nullable byte[] val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeByteArray(val);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeBitSet.
/**
* {@inheritDoc}
*/
@Override
public boolean writeBitSet(String name, BitSet val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeBitSet(val);
return stream.lastFinished();
}
use of org.apache.ignite.internal.direct.stream.DirectByteBufferStream in project ignite by apache.
the class DirectMessageWriter method writeBooleanArray.
/**
* {@inheritDoc}
*/
@Override
public boolean writeBooleanArray(String name, @Nullable boolean[] val) {
DirectByteBufferStream stream = state.item().stream;
stream.writeBooleanArray(val);
return stream.lastFinished();
}
Aggregations