public ColumnStatistics getCachedTableColStats(ColumnStatisticsDesc csd, List<String> colNames,
        String validWriteIds, boolean areTxnStatsSupported) throws MetaException {
      List<ColumnStatisticsObj> colStatObjs = new ArrayList<ColumnStatisticsObj>();
      try {
        tableLock.readLock().lock();
        for (String colName : colNames) {
          ColumnStatisticsObj colStatObj = tableColStatsCache.get(colName);
          if (colStatObj != null) {
            colStatObjs.add(colStatObj);
          }
        }
        ColumnStatistics colStat = new ColumnStatistics(csd, colStatObjs);
        colStat.setEngine(CacheUtils.HIVE_ENGINE);
        return CachedStore.adjustColStatForGet(getTable().getParameters(), colStat,
            getTable().getWriteId(), validWriteIds, areTxnStatsSupported);
      } finally {
        tableLock.readLock().unlock();
      }
    }
Common method to refresh cache constraint
@param constraints list of constraints to update
@param mn Constraint type
@return Since memory constraint is handled by cache eviction policy.
Hence this method will always return true if correct constraint type passed.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/SharedCache.java