Package org.apache.druid.segment
Class ColumnCache
java.lang.Object
org.apache.druid.segment.ColumnCache
- All Implemented Interfaces:
Expr.InputBindingInspector,ColumnIndexSelector,ColumnInspector,ColumnSelector
Wraps
QueryableIndex and VirtualColumns, providing a unified view of physical and virtual columns,
as well as lifecycle management for physical columns.-
Constructor Summary
ConstructorsConstructorDescriptionColumnCache(QueryableIndex index, VirtualColumns virtualColumns, Closer closer) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnHolder(String columnName) getIndexSupplier(String column) Get theColumnIndexSupplierof a column.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.ColumnInspector
getTypeMethods inherited from interface org.apache.druid.segment.ColumnSelector
getColumnCapabilitiesMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Constructor Details
-
ColumnCache
-
-
Method Details
-
getColumnHolder
- Specified by:
getColumnHolderin interfaceColumnSelector
-
getNumRows
public int getNumRows()- Specified by:
getNumRowsin interfaceColumnIndexSelector
-
getBitmapFactory
- Specified by:
getBitmapFactoryin interfaceColumnIndexSelector
-
getIndexSupplier
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
-