private static boolean compareTimeValuePair(
      TimeValuePair timeValuePair1, TimeValuePair timeValuePair2) {
    if (timeValuePair1.getTimestamp() != timeValuePair2.getTimestamp()) {
      return false;
    }
    Object[] values1 = timeValuePair1.getValues();
    Object[] values2 = timeValuePair2.getValues();
    if (values1.length != values2.length) {
      return false;
    }
    for (int i = 0; i < values1.length; i++) {
      Object obj1 = values1[i];
      Object obj2 = values2[i];
      if (obj1 == null && obj2 == null) {
        continue;
      }
      if (obj1 == null || obj2 == null) {
        return false;
      }
      if (!obj1.equals(obj2)) {
        return false;
      }
    }
    return true;
  }
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