public class BufferParallelAggregation extends Object
//...
ExecutorService executor = ...
ImmutableRoaringBitmap[] bitmaps = ...
// executes on executors threads
MutableRoaringBitmap result = executor.submit(
() -> BufferParallelAggregation.or(bitmaps)).get();
Modifier and Type | Class and Description |
---|---|
static class |
BufferParallelAggregation.ContainerCollector
Collects containers grouped by their key into a RoaringBitmap, applying the
supplied aggregation function to each group.
|
static class |
BufferParallelAggregation.OrCollector
Collects a list of containers into a single container.
|
Constructor and Description |
---|
BufferParallelAggregation() |
Modifier and Type | Method and Description |
---|---|
static SortedMap<Short,List<MappeableContainer>> |
groupByKey(ImmutableRoaringBitmap... bitmaps)
Groups the containers by their keys
|
static MutableRoaringBitmap |
or(ImmutableRoaringBitmap... bitmaps)
Computes the bitwise union of the input bitmaps
|
static MutableRoaringBitmap |
xor(ImmutableRoaringBitmap... bitmaps)
Computes the bitwise symmetric difference of the input bitmaps
|
public static SortedMap<Short,List<MappeableContainer>> groupByKey(ImmutableRoaringBitmap... bitmaps)
bitmaps
- input bitmapspublic static MutableRoaringBitmap or(ImmutableRoaringBitmap... bitmaps)
bitmaps
- the input bitmapspublic static MutableRoaringBitmap xor(ImmutableRoaringBitmap... bitmaps)
bitmaps
- the input bitmapsCopyright © 2018. All rights reserved.