public HFileContext build() {
    return new HFileContext(usesHBaseChecksum, includesMvcc, includesTags, compression,
      decompressionContext, compressTags, checkSumType, bytesPerChecksum, blockSize, encoding,
      cryptoContext, fileCreateTime, hfileName, columnFamily, tableName, cellComparator,
      indexBlockEncoding);
  }
Use this constructor if you want to change a few settings only in another context.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileContextBuilder.java