Search in sources :

Example 6 with QueryResultRow

use of com.hazelcast.map.impl.query.QueryResultRow in project hazelcast by hazelcast.

the class NodeQueryCacheEndToEndConstructor method populateWithValues.

private void populateWithValues(InternalQueryCache queryCache, Collection<QueryResult> resultSets) {
    for (QueryResult queryResult : resultSets) {
        try {
            if (queryResult == null) {
                continue;
            }
            for (QueryResultRow row : queryResult) {
                Data keyData = row.getKey();
                Data valueData = row.getValue();
                queryCache.setInternal(keyData, valueData, false, EntryEventType.ADDED);
            }
        } catch (Throwable t) {
            throw ExceptionUtil.rethrow(t);
        }
    }
}
Also used : QueryResult(com.hazelcast.map.impl.query.QueryResult) QueryResultRow(com.hazelcast.map.impl.query.QueryResultRow) Data(com.hazelcast.nio.serialization.Data)

Aggregations

QueryResultRow (com.hazelcast.map.impl.query.QueryResultRow)6 QueryResult (com.hazelcast.map.impl.query.QueryResult)4 Data (com.hazelcast.nio.serialization.Data)4 QueryCacheEventData (com.hazelcast.map.impl.querycache.event.QueryCacheEventData)2 MapAssignAndGetUuidsOperation (com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperation)1 MapAssignAndGetUuidsOperationFactory (com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperationFactory)1 BatchNearCacheInvalidation (com.hazelcast.internal.nearcache.impl.invalidation.BatchNearCacheInvalidation)1 SingleNearCacheInvalidation (com.hazelcast.internal.nearcache.impl.invalidation.SingleNearCacheInvalidation)1 ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 MapEntriesWithCursor (com.hazelcast.map.impl.iterator.MapEntriesWithCursor)1 MapKeysWithCursor (com.hazelcast.map.impl.iterator.MapKeysWithCursor)1 UuidFilter (com.hazelcast.map.impl.nearcache.invalidation.UuidFilter)1 AccumulatorConsumerOperation (com.hazelcast.map.impl.operation.AccumulatorConsumerOperation)1 AddIndexOperation (com.hazelcast.map.impl.operation.AddIndexOperation)1 AddIndexOperationFactory (com.hazelcast.map.impl.operation.AddIndexOperationFactory)1 AddInterceptorOperation (com.hazelcast.map.impl.operation.AddInterceptorOperation)1 AwaitMapFlushOperation (com.hazelcast.map.impl.operation.AwaitMapFlushOperation)1 ClearBackupOperation (com.hazelcast.map.impl.operation.ClearBackupOperation)1 ClearNearCacheOperation (com.hazelcast.map.impl.operation.ClearNearCacheOperation)1 ClearOperation (com.hazelcast.map.impl.operation.ClearOperation)1