Class WrappedImmutableConciseBitmap

    • Constructor Detail

      • WrappedImmutableConciseBitmap

        public WrappedImmutableConciseBitmap​(IntBuffer buffer)
      • WrappedImmutableConciseBitmap

        public WrappedImmutableConciseBitmap​(ImmutableConciseSet immutableConciseSet)
        Wrap an ImmutableConciseSet
        Parameters:
        immutableConciseSet - bitmap to be wrapped
    • Method Detail

      • get

        public boolean get​(int value)
        Description copied from interface: ImmutableBitmap
        Returns true if the bit at position value is set
        Specified by:
        get in interface ImmutableBitmap
        Parameters:
        value - the position to check
        Returns:
        true if bit is set
      • iterator

        public org.roaringbitmap.IntIterator iterator()
        Specified by:
        iterator in interface ImmutableBitmap
        Returns:
        an iterator over the set bits of this bitmap
      • peekableIterator

        public org.roaringbitmap.PeekableIntIterator peekableIterator()
        Specified by:
        peekableIterator in interface ImmutableBitmap
        Returns:
        a peekable iterator which can skip to a position
      • size

        public int size()
        Specified by:
        size in interface ImmutableBitmap
        Returns:
        The number of bits set to true in this bitmap
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface ImmutableBitmap
        Returns:
        True if this bitmap is empty (contains no set bit)
      • intersection

        public ImmutableBitmap intersection​(ImmutableBitmap otherBitmap)
        Description copied from interface: ImmutableBitmap
        Compute the bitwise-and of this bitmap with another bitmap. A new bitmap is generated. Note that the other bitmap should be of the same class instance.
        Specified by:
        intersection in interface ImmutableBitmap
        Parameters:
        otherBitmap - other bitmap