use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.
the class ClearBackupOperation method run.
@Override
public void run() throws Exception {
MultiMapContainer container = getOrCreateContainer();
container.clear();
response = true;
}
use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.
the class ClearOperation method run.
@Override
public void run() throws Exception {
MultiMapContainer container = getOrCreateContainer();
response = container.clear();
}
use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.
the class ContainsEntryOperation method run.
@Override
public void run() throws Exception {
MultiMapContainer container = getOrCreateContainer();
((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
if (key != null && value != null) {
response = container.containsEntry(isBinary(), key, value);
} else if (key != null) {
response = container.containsKey(key);
} else {
response = container.containsValue(isBinary(), value);
}
}
use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.
the class CountOperation method run.
@Override
public void run() throws Exception {
MultiMapContainer container = getOrCreateContainer();
((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
MultiMapValue multiMapValue = container.getMultiMapValueOrNull(dataKey);
response = multiMapValue == null ? 0 : multiMapValue.getCollection(false).size();
}
use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.
the class EntrySetOperation method run.
@Override
public void run() throws Exception {
MultiMapContainer container = getOrCreateContainer();
((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
response = new EntrySetResponse(container.copyCollections(), getNodeEngine());
}
Aggregations