public synchronized void clear() {
    clearAllElements();
    size = 0;
  }
Clear all the elements in the queue.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/schedule/queue/IndexedBlockingQueue.java