public static boolean isDeviceDeletedByMods(
      final Collection<ModEntry> currentModifications,
      final ITimeIndex currentTimeIndex,
      final IDeviceID device)
      throws IllegalPathException {
    return isAllDeletedByMods(
        currentModifications,
        device,
        Objects.isNull(currentTimeIndex)
            ? Long.MIN_VALUE
            : currentTimeIndex.getStartTime(device).orElse(Long.MIN_VALUE),
        Objects.isNull(currentTimeIndex)
            ? Long.MAX_VALUE
            : currentTimeIndex.getEndTime(device).orElse(Long.MAX_VALUE));
  }
construct a deletion list from a memtable.

@param memTable memtable
@param timeLowerBound time watermark
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ModificationUtils.java