private boolean filesInRatio(List<HStoreFile> files, double currentRatio) {
    if (files.size() < 2) {
      return true;
    }

    long totalFileSize = getTotalStoreSize(files);

    for (HStoreFile file : files) {
      long singleFileSize = file.getReader().length();
      long sumAllOtherFileSizes = totalFileSize - singleFileSize;

      if (singleFileSize > sumAllOtherFileSizes * currentRatio) {
        return false;
      }
    }
    return true;
  }
Check that all files satisfy the constraint

<pre>
FileSize(i) <= ( Sum(0,N,FileSize(_)) - FileSize(i)) * Ratio.
</pre>

@param files        List of store files to consider as a compaction candidate.
@param currentRatio The ratio to use.
@return a boolean if these files satisfy the ratio constraints.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/ExploringCompactionPolicy.java