Package org.apache.druid.segment.index
Class SimpleImmutableBitmapIterableIndex
java.lang.Object
org.apache.druid.segment.index.SimpleBitmapColumnIndex
org.apache.druid.segment.index.SimpleImmutableBitmapIterableIndex
- All Implemented Interfaces:
BitmapColumnIndex
- Direct Known Subclasses:
DictionaryScanningBitmapIndex
SimpleBitmapColumnIndex for anything which can compute an Iterable<ImmutableBitmap> in some manner-
Field Summary
Fields inherited from class org.apache.druid.segment.index.SimpleBitmapColumnIndex
CAPABILITIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> TcomputeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown) Compute a bitmap result wrapped with theBitmapResultFactoryrepresenting the rows matched by this index.protected abstract Iterable<ImmutableBitmap>getBitmapIterable(boolean includeUnknown) Methods inherited from class org.apache.druid.segment.index.SimpleBitmapColumnIndex
getIndexCapabilitiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.index.BitmapColumnIndex
computeBitmapResult, estimatedComputeCost
-
Constructor Details
-
SimpleImmutableBitmapIterableIndex
public SimpleImmutableBitmapIterableIndex()
-
-
Method Details
-
computeBitmapResult
public final <T> T computeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown) Description copied from interface:BitmapColumnIndexCompute a bitmap result wrapped with theBitmapResultFactoryrepresenting the rows matched by this index. If building a cursor, useBitmapColumnIndex.computeBitmapResult(BitmapResultFactory, int, int, boolean)instead.- Parameters:
bitmapResultFactory- helper to format theImmutableBitmapin a form ready for consumption by callersincludeUnknown- 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
-