use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class MapKeysWithCursor method readData.
@Override
public void readData(ObjectDataInput in) throws IOException {
nextTableIndexToReadFrom = in.readInt();
int size = in.readInt();
keys = new ArrayList<Data>(size);
for (int i = 0; i < size; i++) {
Data data = in.readData();
keys.add(data);
}
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class BasePutOperation method publishWANReplicationEvent.
private void publishWANReplicationEvent(MapEventPublisher mapEventPublisher, Object value) {
if (!mapContainer.isWanReplicationEnabled()) {
return;
}
Record record = recordStore.getRecord(dataKey);
if (record == null) {
return;
}
final Data valueConvertedData = mapServiceContext.toData(value);
final EntryView entryView = EntryViews.createSimpleEntryView(dataKey, valueConvertedData, record);
mapEventPublisher.publishWanReplicationUpdate(name, entryView);
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class PutFromLoadAllOperation method writeInternal.
@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
super.writeInternal(out);
final List<Data> keyValueSequence = this.keyValueSequence;
final int size = keyValueSequence.size();
out.writeInt(size);
for (Data data : keyValueSequence) {
out.writeData(data);
}
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class RemoveFromLoadAllOperation method writeInternal.
@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
super.writeInternal(out);
final int size = keys.size();
out.writeInt(size);
for (Data key : keys) {
out.writeData(key);
}
}
use of com.hazelcast.nio.serialization.Data in project hazelcast by hazelcast.
the class RemoveFromLoadAllOperation method readInternal.
@Override
protected void readInternal(ObjectDataInput in) throws IOException {
super.readInternal(in);
final int size = in.readInt();
if (size > 0) {
keys = new ArrayList<Data>(size);
}
for (int i = 0; i < size; i++) {
Data data = in.readData();
keys.add(data);
}
}
Aggregations