public void setCacheDataOnWrite(boolean cacheDataOnWrite) {
    this.cacheDataOnWrite = cacheDataOnWrite;
  }
@param cacheDataOnWrite whether data blocks should be written to the cache when an HFile is
                        written
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java