liu391447823 opened a new issue #6875:
URL: https://github.com/apache/incubator-doris/issues/6875


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   1. bitmapSubsetInRange
   
   bitmapSubsetInRange(bitmap, range_start, range_end)
   参数:
   bitmap – 位图对象.
   range_start – 范围起始点(含).
   range_end – 范围结束点(不含)
   
   2. bitmapSubsetLimit
   
   bitmapSubsetLimit(bitmap, range_start, limit)
   参数:
   bitmap – 位图对象.
   range_start – 范围起始点(含).
   limit – 子位图基数上限
   
   3. subBitmap
   subBitmap(bitmap, offset, limit)
   参数:
   bitmap – 位图对象.
   offset – 跳过多少个元素.
   limit – 子位图基数上限
   
   
   
   
   ### Use case
   
   需求:
   我们有一个系统是基于用户画像的推送系统,根据用户画像的标签构建用户群组bitmap,然后根据构建的bitmap导出用户id,
   基于用户id去做推送。
   遇到的问题:
   目前遇到的问题是,当构建的bitmap数据量比较大时(比如达到百万级别的基数),我们无法通过bitmap_to_string函数导出
   所有的用户id,所以我们想的办法是通过分页的方式,每次构建子bitmap,然后将子bitmap进行导出
   
   ### Related issues
   
   #bit
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to