Search in sources :

Example 21 with MultiMapContainer

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

the class GetAllOperation method run.

@Override
public void run() throws Exception {
    MultiMapContainer container = getOrCreateContainer();
    MultiMapValue multiMapValue = container.getMultiMapValueOrNull(dataKey);
    Collection coll = null;
    if (multiMapValue != null) {
        multiMapValue.incrementHit();
        coll = multiMapValue.getCollection(executedLocally());
    }
    response = new MultiMapResponse(coll, getValueCollectionType(container));
}
Also used : MultiMapValue(com.hazelcast.multimap.impl.MultiMapValue) MultiMapContainer(com.hazelcast.multimap.impl.MultiMapContainer) Collection(java.util.Collection)

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