Class BufferParallelAggregation


  • public class BufferParallelAggregation
    extends Object
    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 = ...
           ImmutableRoaringBitmap[] bitmaps = ...
           // executes on executors threads
           MutableRoaringBitmap result = executor.submit(
                () -> BufferParallelAggregation.or(bitmaps)).get();
     
     
    • Constructor Detail

      • BufferParallelAggregation

        public BufferParallelAggregation()