Search in sources :

Example 1 with MultiMapContainer

use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.

the class ClearOperation method beforeRun.

@Override
public void beforeRun() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    shouldBackup = container.size() > 0;
}
Also used : MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer)

Example 2 with MultiMapContainer

use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.

the class SizeOperation method run.

@Override
public void run() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    response = container.size();
    ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
}
Also used : MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer)

Example 3 with MultiMapContainer

use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.

the class ValuesOperation method run.

@Override
public void run() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
    response = new MultiMapResponse(container.values(), getValueCollectionType(container));
}
Also used : MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer)

Example 4 with MultiMapContainer

use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.

the class KeySetOperation method run.

@Override
public void run() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
    response = new MultiMapResponse(container.keySet(), getValueCollectionType(container));
}
Also used : MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer)

Example 5 with MultiMapContainer

use of com.hazelcast.multimap.impl.MultiMapContainer in project hazelcast by hazelcast.

the class RemoveAllOperation method run.

@Override
public void run() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    coll = remove(executedLocally());
    response = new MultiMapResponse(coll, getValueCollectionType(container));
}
Also used : MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer)

Aggregations

MultiMapContainer (com.hazelcast.multimap.impl.MultiMapContainer)21 MultiMapValue (com.hazelcast.multimap.impl.MultiMapValue)9 MultiMapRecord (com.hazelcast.multimap.impl.MultiMapRecord)8 TransactionException (com.hazelcast.transaction.TransactionException)2 MultiMapConfig (com.hazelcast.config.MultiMapConfig)1 MultiMapResponse (com.hazelcast.multimap.impl.operations.MultiMapResponse)1 Collection (java.util.Collection)1 List (java.util.List)1