use of com.hazelcast.map.impl.querycache.subscriber.record.QueryCacheRecord in project hazelcast by hazelcast.
the class DefaultQueryCacheRecordStore method addWithoutEvictionCheck.
/**
* Similar to {@link #addWithoutEvictionCheck} with explicit
* {@link CachedQueryEntry} arguments, to be reused when saving to index.
* Suitable for usage with {@link #addBatch(Iterator, BiConsumer)}.
*/
public QueryCacheRecord addWithoutEvictionCheck(Data keyData, Data valueData, CachedQueryEntry newEntry, CachedQueryEntry oldEntry) {
QueryCacheRecord newRecord = recordFactory.createRecord(valueData);
QueryCacheRecord oldRecord = cache.put(toQueryCacheKey(keyData), newRecord);
saveIndex(keyData, newRecord, oldRecord, newEntry, oldEntry);
return oldRecord;
}
Aggregations