Class FastAggregation32


  • public class FastAggregation32
    extends java.lang.Object
    Fast algorithms to aggregate many bitmaps. These algorithms are just given as reference. They may not be faster than the corresponding methods in the EWAHCompressedBitmap class.
    Author:
    Daniel Lemire
    • Constructor Detail

      • FastAggregation32

        public FastAggregation32()
    • Method Detail

      • bufferedand

        public static EWAHCompressedBitmap32 bufferedand​(int bufsize,
                                                         EWAHCompressedBitmap32... bitmaps)
        Compute the and aggregate using a temporary uncompressed bitmap.
        Parameters:
        bitmaps - the source bitmaps
        bufsize - buffer size used during the computation in 64-bit words (per input bitmap)
        Returns:
        the or aggregate.
      • bufferedandWithContainer

        public static void bufferedandWithContainer​(BitmapStorage32 container,
                                                    int bufsize,
                                                    EWAHCompressedBitmap32... bitmaps)
        Compute the and aggregate using a temporary uncompressed bitmap.
        Parameters:
        container - where the aggregate is written
        bufsize - buffer size used during the computation in 64-bit words (per input bitmap)
        bitmaps - the source bitmaps
      • bufferedor

        public static EWAHCompressedBitmap32 bufferedor​(int bufsize,
                                                        EWAHCompressedBitmap32... bitmaps)
        Compute the or aggregate using a temporary uncompressed bitmap.
        Parameters:
        bitmaps - the source bitmaps
        bufsize - buffer size used during the computation in 64-bit words
        Returns:
        the or aggregate.
      • bufferedorWithContainer

        public static void bufferedorWithContainer​(BitmapStorage32 container,
                                                   int bufsize,
                                                   EWAHCompressedBitmap32... bitmaps)
        Compute the or aggregate using a temporary uncompressed bitmap.
        Parameters:
        container - where the aggregate is written
        bufsize - buffer size used during the computation in 64-bit words
        bitmaps - the source bitmaps
      • bufferedxor

        public static EWAHCompressedBitmap32 bufferedxor​(int bufsize,
                                                         EWAHCompressedBitmap32... bitmaps)
        Compute the xor aggregate using a temporary uncompressed bitmap.
        Parameters:
        bitmaps - the source bitmaps
        bufsize - buffer size used during the computation in 64-bit words
        Returns:
        the xor aggregate.
      • bufferedxorWithContainer

        public static void bufferedxorWithContainer​(BitmapStorage32 container,
                                                    int bufsize,
                                                    EWAHCompressedBitmap32... bitmaps)
        Compute the xor aggregate using a temporary uncompressed bitmap.
        Parameters:
        container - where the aggregate is written
        bufsize - buffer size used during the computation in 64-bit words
        bitmaps - the source bitmaps
      • orToContainer

        public static void orToContainer​(BitmapStorage32 container,
                                         EWAHCompressedBitmap32... bitmaps)
        Uses a priority queue to compute the or aggregate.
        Parameters:
        container - where we write the result
        bitmaps - to be aggregated
      • xorToContainer

        public static void xorToContainer​(BitmapStorage32 container,
                                          EWAHCompressedBitmap32... bitmaps)
        Uses a priority queue to compute the xor aggregate.
        Parameters:
        container - where we write the result
        bitmaps - to be aggregated
      • legacy_orWithContainer

        @Deprecated
        public static void legacy_orWithContainer​(BitmapStorage32 container,
                                                  EWAHCompressedBitmap32... bitmaps)
        Deprecated.
        use EWAHCompressedBitmap32.or instead
        For internal use. Computes the bitwise or of the provided bitmaps and stores the result in the container. (This used to be the default.)
        Parameters:
        container - where store the result
        bitmaps - to be aggregated
        Since:
        0.4.0