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 BitmapFactory
getBitmapFactory()
ColumnCapabilities
getColumnCapabilities(String column)
Returns capabilities of a particular column.ColumnHolder
getColumnHolder(String columnName)
ColumnIndexSupplier
getIndexSupplier(String column)
Get theColumnIndexSupplier
of a column.int
getNumRows()
-
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:
getNumRows
in interfaceColumnIndexSelector
-
getBitmapFactory
public BitmapFactory getBitmapFactory()
- Specified by:
getBitmapFactory
in interfaceColumnIndexSelector
-
getIndexSupplier
public ColumnIndexSupplier getIndexSupplier(String column)
Description copied from interface:ColumnIndexSelector
Get theColumnIndexSupplier
of 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:
getIndexSupplier
in interfaceColumnIndexSelector
-
getColumnHolder
@Nullable public ColumnHolder getColumnHolder(String columnName)
- Specified by:
getColumnHolder
in interfaceColumnSelector
-
getColumnCapabilities
@Nullable public ColumnCapabilities getColumnCapabilities(String column)
Description copied from interface:ColumnInspector
Returns capabilities of a particular column.- Specified by:
getColumnCapabilities
in interfaceColumnInspector
- Specified by:
getColumnCapabilities
in interfaceColumnSelector
- Parameters:
column
- column name- Returns:
- capabilities, or null
-
-