Package org.apache.blur.utils

Examples of org.apache.blur.utils.QueryCacheEntry


      }

      if (blurQuery.useCacheIfPresent) {
        LOG.debug("Using cache for query [{0}] on table [{1}].", blurQuery, table);
        QueryCacheKey key = QueryCache.getNormalizedBlurQueryKey(table, blurQuery);
        QueryCacheEntry queryCacheEntry = _queryCache.get(key);
        if (_queryCache.isValid(queryCacheEntry, _indexServer.getShardListCurrentServerOnly(table))) {
          LOG.debug("Cache hit for query [{0}] on table [{1}].", blurQuery, table);
          return queryCacheEntry.getBlurResults(blurQuery);
        } else {
          _queryCache.remove(key);
        }
      }
      BlurUtil.setStartTime(original);
View Full Code Here


      if (ENABLE_CACHE) {
        if (blurQuery.useCacheIfPresent && selector == null) {
          // Selector has to be null because we might cache data if it's not.
          LOG.debug("Using cache for query [{0}] on table [{1}].", blurQuery, table);
          QueryCacheKey key = QueryCache.getNormalizedBlurQueryKey(table, blurQuery);
          QueryCacheEntry queryCacheEntry = _queryCache.get(key);
          if (_queryCache.isValid(queryCacheEntry, _indexServer.getShardListCurrentServerOnly(table))) {
            LOG.debug("Cache hit for query [{0}] on table [{1}].", blurQuery, table);
            return queryCacheEntry.getBlurResults(blurQuery);
          } else {
            _queryCache.remove(key);
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.apache.blur.utils.QueryCacheEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.