imay commented on a change in pull request #1610: Add bitmap agg type and udaf
URL: https://github.com/apache/incubator-doris/pull/1610#discussion_r316943638
##########
File path: be/src/util/bitmap.h
##########
@@ -248,6 +250,144 @@ class Bitmap {
static const int64_t BIT_INDEX_MASK = 63;
};
+enum BitmapDataType {
+ EMPTY = 0,
+ INT32,
+ BITMAP
+};
+
+// the wrapper class for RoaringBitmap
+// todo(kks): improve for low cardinality set
+class RoaringBitmap {
+public:
+ RoaringBitmap() {
+ _type = EMPTY;
+ }
+
+ explicit RoaringBitmap(int32_t value) {
+ _int_value = value;
+ _type = INT32;
+ }
+
+ explicit RoaringBitmap(const char* src) {
Review comment:
I think should add some comment about input argument.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]