private boolean canSubmitCrossTask(
      List<TsFileResource> sequenceFileList, List<TsFileResource> unsequenceFileList) {
    return !sequenceFileList.isEmpty() && !unsequenceFileList.isEmpty();
  }
In a preset time (30 seconds), for each unseqFile, find the list of seqFiles that overlap with
it and have not been selected by the file selector of this compaction task. After finding each
unseqFile and its corresponding overlap seqFile list, estimate the additional memory overhead
that may be added by compacting them (preferably using the loop estimate), and if it does not
exceed the memory overhead preset by the system for the compaction thread, put them into the
selectedSeqFiles and selectedUnseqFiles.

@throws IOException in prepare next split
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/RewriteCrossSpaceCompactionSelector.java