Interface BitmapDataProvider

All Superinterfaces:
ImmutableBitmapDataProvider
All Known Implementing Classes:
FastRankRoaringBitmap, MutableRoaringBitmap, RoaringBitmap

public interface BitmapDataProvider extends ImmutableBitmapDataProvider
Representing a general bitmap interface.
  • Method Details

    • add

      void add(int x)
      set the value to "true", whether it already appears or not.
      Parameters:
      x - integer value
    • add

      void add(long min, long sup)
      Add a range of values to the bitmap
      Parameters:
      min - the inclusive minimum value
      sup - the exclusive maximum value
    • remove

      void remove(int x)
      If present remove the specified integers (effectively, sets its bit value to false)
      Parameters:
      x - integer value representing the index in a bitmap
    • trim

      void trim()
      Recover allocated but unused memory.