Package org.apache.druid.segment
Class ColumnSelectorColumnIndexSelector
- java.lang.Object
-
- org.apache.druid.segment.ColumnSelectorColumnIndexSelector
-
- All Implemented Interfaces:
Expr.InputBindingInspector,ColumnIndexSelector,ColumnInspector,ColumnSelector
public class ColumnSelectorColumnIndexSelector extends Object implements ColumnIndexSelector
-
-
Constructor Summary
Constructors Constructor Description ColumnSelectorColumnIndexSelector(BitmapFactory bitmapFactory, VirtualColumns virtualColumns, ColumnSelector index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitmapFactorygetBitmapFactory()ColumnCapabilitiesgetColumnCapabilities(String column)Returns capabilities of a particular column.ColumnHoldergetColumnHolder(String columnName)ColumnIndexSuppliergetIndexSupplier(String column)Get theColumnIndexSupplierof a column.intgetNumRows()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.ColumnInspector
getType
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
-
-
-
Constructor Detail
-
ColumnSelectorColumnIndexSelector
public ColumnSelectorColumnIndexSelector(BitmapFactory bitmapFactory, VirtualColumns virtualColumns, ColumnSelector index)
-
-
Method Detail
-
getNumRows
public int getNumRows()
- Specified by:
getNumRowsin interfaceColumnIndexSelector
-
getBitmapFactory
public BitmapFactory getBitmapFactory()
- Specified by:
getBitmapFactoryin interfaceColumnIndexSelector
-
getIndexSupplier
public ColumnIndexSupplier getIndexSupplier(String column)
Description copied from interface:ColumnIndexSelectorGet theColumnIndexSupplierof a column. If the column exists, but does not support indexes, this method will return a non-null index supplier, likelyNoIndexesColumnIndexSupplier. Columns which are 'missing' will return a null value from this method, which allows for filters to act on this information to produce an all true or all false index depending on how the filter matches the null value.- Specified by:
getIndexSupplierin interfaceColumnIndexSelector
-
getColumnHolder
@Nullable public ColumnHolder getColumnHolder(String columnName)
- Specified by:
getColumnHolderin interfaceColumnSelector
-
getColumnCapabilities
@Nullable public ColumnCapabilities getColumnCapabilities(String column)
Description copied from interface:ColumnInspectorReturns capabilities of a particular column.- Specified by:
getColumnCapabilitiesin interfaceColumnInspector- Specified by:
getColumnCapabilitiesin interfaceColumnSelector- Parameters:
column- column name- Returns:
- capabilities, or null
-
-