public CompactionPolicy getCompactionPolicy() {
    return new StatsBasedCompactionPolicy(storeConfig, time);
  }
Factory class interface to get {@link StatsBasedCompactionPolicy}
ambry-store/src/main/java/com/github/ambry/store/StatsBasedCompactionPolicyFactory.java