Package org.apache.druid.segment.index
Class AllFalseBitmapColumnIndex
- java.lang.Object
-
- org.apache.druid.segment.index.AllFalseBitmapColumnIndex
-
- All Implemented Interfaces:
BitmapColumnIndex
public class AllFalseBitmapColumnIndex extends Object implements BitmapColumnIndex
-
-
Constructor Summary
Constructors Constructor Description AllFalseBitmapColumnIndex(BitmapFactory bitmapFactory)
AllFalseBitmapColumnIndex(BitmapFactory bitmapFactory, ImmutableBitmap unknownBitmap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
computeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown)
Compute a bitmap result wrapped with theBitmapResultFactory
representing the rows matched by this index.double
estimateSelectivity(int totalRows)
ColumnIndexCapabilities
getIndexCapabilities()
-
-
-
Constructor Detail
-
AllFalseBitmapColumnIndex
public AllFalseBitmapColumnIndex(BitmapFactory bitmapFactory)
-
AllFalseBitmapColumnIndex
public AllFalseBitmapColumnIndex(BitmapFactory bitmapFactory, @Nullable ImmutableBitmap unknownBitmap)
-
-
Method Detail
-
getIndexCapabilities
public ColumnIndexCapabilities getIndexCapabilities()
- Specified by:
getIndexCapabilities
in interfaceBitmapColumnIndex
-
estimateSelectivity
public double estimateSelectivity(int totalRows)
- Specified by:
estimateSelectivity
in interfaceBitmapColumnIndex
-
computeBitmapResult
public <T> T computeBitmapResult(BitmapResultFactory<T> bitmapResultFactory, boolean includeUnknown)
Description copied from interface:BitmapColumnIndex
Compute a bitmap result wrapped with theBitmapResultFactory
representing the rows matched by this index.- Specified by:
computeBitmapResult
in interfaceBitmapColumnIndex
- Parameters:
bitmapResultFactory
- helper to format theImmutableBitmap
in 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 allowNotFilter
to invert a match in an SQL compliant manner- Returns:
- bitmap result representing rows matched by this index
-
-