This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch xingtanzjr/mpp-query-basis
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/xingtanzjr/mpp-query-basis by 
this push:
     new 05e3093  add setNoMoreTsBlocks, destroy and abort methods in SinkHandle
05e3093 is described below

commit 05e30936b2ebb792a393106e742da0a9ad873515
Author: JackieTien97 <[email protected]>
AuthorDate: Wed Mar 16 16:39:13 2022 +0800

    add setNoMoreTsBlocks, destroy and abort methods in SinkHandle
---
 .../java/org/apache/iotdb/db/mpp/buffer/SinkHandle.java    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/mpp/buffer/SinkHandle.java 
b/server/src/main/java/org/apache/iotdb/db/mpp/buffer/SinkHandle.java
index e80550f..0792ce1 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/buffer/SinkHandle.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/buffer/SinkHandle.java
@@ -38,4 +38,18 @@ public interface SinkHandle {
    * is ignored. This can happen with limit queries.
    */
   void send(int partition, ByteBuffer tsBlock);
+
+  /**
+   * Notify buffer that no more pages will be added. Any future calls to 
enqueue a page are ignored.
+   */
+  void setNoMoreTsBlocks();
+
+  /** Destroys the buffer, discarding all pages. */
+  void destroy();
+
+  /**
+   * Abort the buffer, discarding all pages, but blocking readers. It is 
expected that readers will
+   * be unblocked when the failed query is cleaned up.
+   */
+  void abort();
 }

Reply via email to