Class SimpleImmutableBitmapDelegatingIterableIndex

java.lang.Object
org.apache.druid.segment.index.SimpleBitmapColumnIndex
org.apache.druid.segment.index.SimpleImmutableBitmapDelegatingIterableIndex
All Implemented Interfaces:
BitmapColumnIndex
Direct Known Subclasses:
DictionaryRangeScanningBitmapIndex, ValueSetIndexes.BaseValueSetIndexesFromIterable

public abstract class SimpleImmutableBitmapDelegatingIterableIndex extends SimpleBitmapColumnIndex
  • Constructor Details

    • SimpleImmutableBitmapDelegatingIterableIndex

      public SimpleImmutableBitmapDelegatingIterableIndex()
  • Method Details

    • computeBitmapResult

      public final <T> T computeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown)
      Description copied from interface: BitmapColumnIndex
      Compute a bitmap result wrapped with the BitmapResultFactory representing the rows matched by this index. If building a cursor, use BitmapColumnIndex.computeBitmapResult(BitmapResultFactory, int, int, boolean) instead.
      Parameters:
      bitmapResultFactory - helper to format the ImmutableBitmap in a form ready for consumption by callers
      includeUnknown - mapping for Druid native two state logic system into SQL three-state logic system. If set to true, bitmaps returned by this method should include true bits for any rows where the matching result is 'unknown', such as from the input being null valued.
      Returns:
      bitmap result representing rows matched by this index
    • getBitmapIterable

      protected abstract Iterable<ImmutableBitmap> getBitmapIterable()
    • getUnknownsBitmap

      @Nullable protected abstract ImmutableBitmap getUnknownsBitmap()