java.lang.Object
org.bitlap.roaringbitmap.ParallelAggregation
These utility methods provide parallel implementations of
logical aggregation operators. AND is not implemented
because it is unlikely to be profitable.
There is a temporary memory overhead in using these methods,
since a materialisation of the rotated containers grouped by key
is created in each case.
Each method executes on the default fork join pool by default.
If this is undesirable (it usually is) wrap the call inside
a submission of a runnable to your own thread pool.
//...
ExecutorService executor = ...
RoaringBitmap[] bitmaps = ...
// executes on executors threads
RoaringBitmap result = executor.submit(() -> ParallelAggregation.or(bitmaps)).get();
-
嵌套类概要
嵌套类修饰符和类型类说明static classCollects containers grouped by their key into a RoaringBitmap, applying the supplied aggregation function to each group.static classCollects a list of containers into a single container. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明groupByKey(RoaringBitmap... bitmaps) Groups the containers by their keysstatic RoaringBitmapor(RoaringBitmap... bitmaps) Computes the bitwise union of the input bitmapsstatic RoaringBitmapxor(RoaringBitmap... bitmaps) Computes the bitwise symmetric difference of the input bitmaps
-
构造器详细资料
-
ParallelAggregation
public ParallelAggregation()
-
-
方法详细资料
-
groupByKey
Groups the containers by their keys- 参数:
bitmaps- input bitmaps- 返回:
- The containers from the bitmaps grouped by key
-
or
Computes the bitwise union of the input bitmaps- 参数:
bitmaps- the input bitmaps- 返回:
- the union of the bitmaps
-
xor
Computes the bitwise symmetric difference of the input bitmaps- 参数:
bitmaps- the input bitmaps- 返回:
- the symmetric difference of the bitmaps
-