Github user mohammadshahidkhan commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/454#discussion_r94018295
--- Diff:
core/src/main/java/org/apache/carbondata/core/cache/CacheProvider.java ---
@@ -121,15 +141,24 @@ private void
createDictionaryCacheForGivenType(CacheType cacheType, String carbo
* @param cacheType
*/
private void createLRULevelCacheInstance(CacheType cacheType) {
- CarbonLRUCache carbonLRUCache = null;
- // if cache type is dictionary cache, then same lru cache instance has
to be shared
- // between forward and reverse cache
- if (cacheType.equals(CacheType.REVERSE_DICTIONARY) || cacheType
- .equals(CacheType.FORWARD_DICTIONARY)) {
- carbonLRUCache = new
CarbonLRUCache(CarbonCommonConstants.CARBON_MAX_LEVEL_CACHE_SIZE,
- CarbonCommonConstants.CARBON_MAX_LEVEL_CACHE_SIZE_DEFAULT);
- cacheTypeToLRUCacheMap.put(CacheType.REVERSE_DICTIONARY,
carbonLRUCache);
- cacheTypeToLRUCacheMap.put(CacheType.FORWARD_DICTIONARY,
carbonLRUCache);
+ boolean isDriver = Boolean.parseBoolean(CarbonProperties.getInstance()
--- End diff --
Its bound to the Cache interface methods
V get(K key) throws CarbonUtilException;
List getAll(List keys) throws CarbonUtilException;
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---