use of com.hazelcast.replicatedmap.impl.client.ReplicatedMapKeys in project hazelcast by hazelcast.
the class KeySetOperation method run.
@Override
public void run() throws Exception {
ReplicatedMapService service = getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(name);
List keys = new ArrayList();
for (ReplicatedRecordStore store : stores) {
keys.addAll(store.keySet(false));
}
ArrayList<Data> dataKeys = new ArrayList<Data>(keys.size());
SerializationService serializationService = getNodeEngine().getSerializationService();
for (Object key : keys) {
dataKeys.add(serializationService.toData(key));
}
response = new ReplicatedMapKeys(dataKeys);
}
Aggregations