public List<EnrichedEvent> deepCopyEvents() {
    return new ArrayList<>(events);
  }
Discard all events of the given pipe. This method only clears the reference count of the events
and discard them, but do not modify other objects (such as buffers) for simplicity.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/payload/evolvable/batch/PipeTabletEventBatch.java