public class CacheUtil extends Object
| Constructor and Description | 
|---|
CacheUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Cache.NamedKey | 
computeSegmentCacheKey(String segmentIdentifier,
                      SegmentDescriptor descriptor,
                      byte[] queryCacheKey)  | 
static void | 
populate(Cache cache,
        com.fasterxml.jackson.databind.ObjectMapper mapper,
        Cache.NamedKey key,
        Iterable<Object> results)  | 
static <T> boolean | 
populateCacheOnBrokers(Query<T> query,
                      CacheStrategy<T,Object,Query<T>> strategy,
                      CacheConfig cacheConfig)  | 
static <T> boolean | 
populateCacheOnDataNodes(Query<T> query,
                        CacheStrategy<T,Object,Query<T>> strategy,
                        CacheConfig cacheConfig)  | 
static <T> boolean | 
useCacheOnBrokers(Query<T> query,
                 CacheStrategy<T,Object,Query<T>> strategy,
                 CacheConfig cacheConfig)  | 
static <T> boolean | 
useCacheOnDataNodes(Query<T> query,
                   CacheStrategy<T,Object,Query<T>> strategy,
                   CacheConfig cacheConfig)  | 
public static Cache.NamedKey computeSegmentCacheKey(String segmentIdentifier, SegmentDescriptor descriptor, byte[] queryCacheKey)
public static void populate(Cache cache, com.fasterxml.jackson.databind.ObjectMapper mapper, Cache.NamedKey key, Iterable<Object> results)
public static <T> boolean useCacheOnBrokers(Query<T> query, CacheStrategy<T,Object,Query<T>> strategy, CacheConfig cacheConfig)
public static <T> boolean populateCacheOnBrokers(Query<T> query, CacheStrategy<T,Object,Query<T>> strategy, CacheConfig cacheConfig)
public static <T> boolean useCacheOnDataNodes(Query<T> query, CacheStrategy<T,Object,Query<T>> strategy, CacheConfig cacheConfig)
public static <T> boolean populateCacheOnDataNodes(Query<T> query, CacheStrategy<T,Object,Query<T>> strategy, CacheConfig cacheConfig)
Copyright © 2011–2018. All rights reserved.