/** * This method will create the cache for given cache type * * @param cacheType type of cache */ private void createDictionaryCacheForGivenType(CacheType cacheType) { Cache cacheObject = null; if (cacheType.equals(CacheType.REVERSE_DICTIONARY)) { cacheObject = new ReverseDictionaryCache<DictionaryColumnUniqueIdentifier, Dictionary>(carbonLRUCache); } else if (cacheType.equals(CacheType.FORWARD_DICTIONARY)) { cacheObject = new ForwardDictionaryCache<DictionaryColumnUniqueIdentifier, Dictionary>(carbonLRUCache); } else if (cacheType.equals(cacheType.DRIVER_BLOCKLET_DATAMAP)) { cacheObject = new BlockletDataMapIndexStore(carbonLRUCache); } cacheTypeToCacheMap.put(cacheType, cacheObject); }