public boolean needsCompactions(StripeInformationProvider si, List<HStoreFile> filesCompacting) {
    // Approximation on whether we need compaction.
    return filesCompacting.isEmpty() && (StoreUtils.hasReferences(si.getStoreFiles())
      || (si.getLevel0Files().size() >= this.config.getLevel0MinFiles())
      || needsSingleStripeCompaction(si) || hasExpiredStripes(si) || allL0FilesExpired(si));
  }
Stripe store implementation of compaction policy.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/StripeCompactionPolicy.java