jpedroantunes commented on a change in pull request #9813:
URL: https://github.com/apache/arrow/pull/9813#discussion_r604902035



##########
File path: cpp/src/gandiva/cache.h
##########
@@ -31,29 +32,40 @@ int GetCapacity();
 GANDIVA_EXPORT
 void LogCacheSize(size_t capacity);
 
+GANDIVA_EXPORT
+int GetCacheTypeToUse();
+
 template <class KeyType, typename ValueType>
 class Cache {
  public:
-  explicit Cache(size_t capacity) : cache_(capacity) { LogCacheSize(capacity); 
}
+  explicit Cache(size_t capacity, int cache_type_to_use) {
+    if (cache_type_to_use == 0) {
+      this->cache_ = new LowerValueUsedCache<KeyType, ValueType>(capacity);

Review comment:
       Applied!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to