@Override
  public void close() throws IOException {
    for (TsFileSequenceReader reader : readerMap.values()) {
      reader.close();
    }
  }
collect the modification for current device and apply it to the alignedChunkMetadataList.

@param tsFileResource tsfile resource
@param alignedChunkMetadataList list of aligned chunk metadata
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.java