protected List<ModEntry> getModificationsFromCache(
      TsFileResource tsFileResource, IDeviceID deviceId, String measurement)
      throws IllegalPathException {
    PatternTreeMap<ModEntry, PatternTreeMapFactory.ModsSerializer> allModifications =
        modificationCacheMap.get(tsFileResource.getTsFile().getName());
    if (allModifications == null) {
      return Collections.emptyList();
    }
    PartialPath path = CompactionPathUtils.getPath(deviceId, measurement);
    List<ModEntry> modEntries = allModifications.getOverlapped(path);
    if (path.getIDeviceID().isTableModel()) {
      modEntries =
          modEntries.stream()
              .filter(e -> e.affects(path.getIDeviceID()) && e.affects(path.getMeasurement()))
              .collect(Collectors.toList());
    }
    return ModificationUtils.sortAndMerge(modEntries);
  }
Get the modifications of a timeseries in the ModificationFile of a TsFile. Create ttl
modification from ttl cache.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/executor/fast/SeriesCompactionExecutor.java