public static Map<IFullPath, List<TimeValuePair>> getAllDataByQuery(
      List<TsFileResource> sequenceResources, List<TsFileResource> unsequenceResources)
      throws IllegalPathException, IOException {
    List<IFullPath> partialPaths =
        getAllPathsOfResources(
            Stream.concat(sequenceResources.stream(), unsequenceResources.stream())
                .collect(Collectors.toList()));
    return getDataByQuery(partialPaths, sequenceResources, unsequenceResources);
  }
Using SeriesRawDataBatchReader to read raw data from files, and return it as a map.

@param sequenceResources
@param unsequenceResources
@return
@throws IllegalPathException
@throws IOException
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionCheckerUtils.java