public class CacheAccessClient<K,V> extends Object
| Constructor and Description |
|---|
CacheAccessClient(org.apache.carbondata.core.cache.Cache<K,V> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccessCount(List<K> segmentList)
This method will clear the access count for a given list of segments
|
void |
close()
the method is used to clear access count of the unused segments cacheable object
|
V |
get(K key)
This method will get the value for the given key.
|
V |
getIfPresent(K key)
This method will return the value for the given key.
|
void |
invalidateAll(List<K> keys)
This method will remove the cache for a given key
|
public V getIfPresent(K key)
key - public V get(K key) throws IOException
key - IOException - in case memory is not sufficient to load data into memorypublic void close()
public void invalidateAll(List<K> keys)
keys - Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.