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
public abstract class SimpleImmutableBitmapIterableIndex extends SimpleBitmapColumnIndex
SimpleBitmapColumnIndexfor anything which can compute anIterablein some manner
-
-
Field Summary
-
Fields inherited from class org.apache.druid.segment.index.SimpleBitmapColumnIndex
CAPABILITIES
-
-
Constructor Summary
Constructors Constructor Description SimpleImmutableBitmapIterableIndex()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> TcomputeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown)Compute a bitmap result wrapped with theBitmapResultFactoryrepresenting the rows matched by this index.doubleestimateSelectivity(int totalRows)protected abstract Iterable<ImmutableBitmap>getBitmapIterable()protected abstract ImmutableBitmapgetUnknownsBitmap()-
Methods inherited from class org.apache.druid.segment.index.SimpleBitmapColumnIndex
getIndexCapabilities
-
-
-
-
Method Detail
-
estimateSelectivity
public double estimateSelectivity(int totalRows)
-
computeBitmapResult
public <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.- 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, this method should also return true if the result is 'unknown' to be a match, such as from the input being null valued. Used primarily to allowNotFilterto invert a match in an SQL compliant manner- Returns:
- bitmap result representing rows matched by this index
-
getBitmapIterable
protected abstract Iterable<ImmutableBitmap> getBitmapIterable()
-
getUnknownsBitmap
@Nullable protected abstract ImmutableBitmap getUnknownsBitmap()
-
-