public void setMaxChunkSize(int maxChunkSize) {
      if (maxChunkSize <= 0) {
        throw new IllegalArgumentException("Invalid maximum index block size");
      }
      this.maxChunkSize = maxChunkSize;
    }
Creates a multi-level block index writer.
@param blockWriter the block writer to use to write index blocks
@param cacheConf   used to determine when and how a block should be cached-on-write.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java