private static BlockBasedTableConfig copyTableFormatConfig(final BlockBasedTableConfig cfg) {
        return new BlockBasedTableConfig() //
            .setNoBlockCache(cfg.noBlockCache()) //
            .setBlockSize(cfg.blockSize()) //
            .setBlockSizeDeviation(cfg.blockSizeDeviation()) //
            .setBlockRestartInterval(cfg.blockRestartInterval()) //
            .setWholeKeyFiltering(cfg.wholeKeyFiltering()) //
            .setCacheIndexAndFilterBlocks(cfg.cacheIndexAndFilterBlocks()) //
            .setCacheIndexAndFilterBlocksWithHighPriority(cfg.cacheIndexAndFilterBlocksWithHighPriority()) //
            .setPinL0FilterAndIndexBlocksInCache(cfg.pinL0FilterAndIndexBlocksInCache()) //
            .setPartitionFilters(cfg.partitionFilters()) //
            .setMetadataBlockSize(cfg.metadataBlockSize()) //
            .setPinTopLevelIndexAndFilter(cfg.pinTopLevelIndexAndFilter()) //
            .setChecksumType(cfg.checksumType()) //
            .setIndexType(cfg.indexType()) //
            .setFormatVersion(cfg.formatVersion());
    }
Get a new default TableFormatConfig or a copy of the exist ableFormatConfig.

@param  groupId raft group id
@param cls the key of TableFormatConfig
@return new default TableFormatConfig or a copy of the exist TableFormatConfig
jraft-core/src/main/java/com/alipay/sofa/jraft/util/StorageOptionsFactory.java