Interface LogicalElement<T>

  • Type Parameters:
    T - the type of element (e.g., a bitmap class)
    All Known Implementing Classes:
    EWAHCompressedBitmap, EWAHCompressedBitmap32

    public interface LogicalElement<T>
    A prototypical model for bitmaps. Used by the class FastAggregation. Users should probably not be concerned by this class.
    Author:
    Daniel Lemire
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T and​(T le)
      Compute the bitwise logical and
      T andNot​(T le)
      Compute the bitwise logical and not
      T compose​(T le)
      Compute the composition
      void not()
      Compute the bitwise logical not (in place)
      T or​(T le)
      Compute the bitwise logical or
      int sizeInBits()
      How many logical bits does this element represent?
      int sizeInBytes()
      Should report the storage requirement
      T xor​(T le)
      Compute the bitwise logical Xor
    • Method Detail

      • and

        T and​(T le)
        Compute the bitwise logical and
        Parameters:
        le - element
        Returns:
        the result of the operation
      • andNot

        T andNot​(T le)
        Compute the bitwise logical and not
        Parameters:
        le - element
        Returns:
        the result of the operation
      • not

        void not()
        Compute the bitwise logical not (in place)
      • or

        T or​(T le)
        Compute the bitwise logical or
        Parameters:
        le - another element
        Returns:
        the result of the operation
      • sizeInBits

        int sizeInBits()
        How many logical bits does this element represent?
        Returns:
        the number of bits represented by this element
      • sizeInBytes

        int sizeInBytes()
        Should report the storage requirement
        Returns:
        How many bytes
        Since:
        0.6.2
      • xor

        T xor​(T le)
        Compute the bitwise logical Xor
        Parameters:
        le - element
        Returns:
        the result of the operation
      • compose

        T compose​(T le)
        Compute the composition
        Parameters:
        le - another element
        Returns:
        the result of the operation