@Override
  public void checkAndMayFlushChunkMetadata() throws IOException {
    for (CompactionTsFileWriter fileIoWriter : targetFileWriters) {
      fileIoWriter.checkMetadataSizeAndMayFlush();
    }
  }
Write data in batch, only used for aligned device.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/writer/AbstractCrossCompactionWriter.java