public int getNumOfBufferedTsBlocks() {
    return queue.size();
  }
Allow adding data to queue manually.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/SharedTsBlockQueue.java