compiletheworld commented on code in PR #10921:
URL: https://github.com/apache/doris/pull/10921#discussion_r923984732


##########
be/src/olap/tablet_meta.h:
##########
@@ -353,6 +353,69 @@ class DeleteBitmap {
      * @param other
      */
     void merge(const DeleteBitmap& other);
+
+    /**
+     * Checks if the given row is marked deleted in bitmap with the condition:
+     * all the bitmaps that
+     * RowsetId and SegmentId are the same as the given ones,
+     * and Version <= the given Version
+     *
+     * Note: aggregation cache may be used.
+     *
+     * @return true if marked deleted
+     */
+    bool contains_agg(const BitmapKey& bitmap, uint32_t row_id) const;
+
+    /**
+     * Gets aggregated delete_bitmap on rowset_id and version, the same effect:
+     * `select sum(roarging::Roaring) where RowsetId=rowset_id and 
SegmentId=seg_id and Version <= version`

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to