static Optional<MajorCompactionRequest> newRequest(Connection connection, RegionInfo info,
    TableDescriptor htd) throws IOException {
    MajorCompactionTTLRequest request = new MajorCompactionTTLRequest(connection, info);
    return request.createRequest(connection, htd);
  }
This request helps determine if a region has to be compacted based on table's TTL.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/compaction/MajorCompactionTTLRequest.java