public boolean shouldCacheCompressed(BlockCategory category) {
    switch (category) {
      case DATA:
        return this.cacheDataOnRead && this.cacheDataCompressed;
      default:
        return false;
    }
  }
Returns true if this {@link BlockCategory} should be compressed in blockcache, false otherwise
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java