Package org.apache.druid.math.expr
Class ExpressionPredicateIndexSupplier
java.lang.Object
org.apache.druid.math.expr.ExpressionPredicateIndexSupplier
- All Implemented Interfaces:
ColumnIndexSupplier
Uses the underlying dictionary values of a column to provide
DruidPredicateIndexes that apply an Expr
to the values of an input column before matching with a DruidPredicateFactory. This supplier is only suitable
for use on a direct column, and that column must be dictionary encoded and provides
DictionaryEncodedValueIndex so that the dictionary values can be iterated and transformed with the
Expr-
Constructor Summary
ConstructorsConstructorDescriptionExpressionPredicateIndexSupplier(Expr expr, String inputColumn, ExpressionType inputType, ColumnType outputType, DictionaryEncodedValueIndex<?> inputColumnValueIndexes) -
Method Summary
-
Constructor Details
-
ExpressionPredicateIndexSupplier
public ExpressionPredicateIndexSupplier(Expr expr, String inputColumn, ExpressionType inputType, ColumnType outputType, DictionaryEncodedValueIndex<?> inputColumnValueIndexes)
-
-
Method Details
-
as
Description copied from interface:ColumnIndexSupplierTry to get a column 'index' of the specified type. If the index of the desired type is not available, this method will return null. If the value is non-null, the index may be used for the eventual construction of anOffsetto form the basis of aCursor(orVectorOffsetandVectorCursor) which can greatly reduce the total number of rows which need to be scanned and processed. Objects returned by this method are not thread-safe. There are several built-in index classes which can be passed as an argument to this method when used fromFilter.getBitmapColumnIndex(ColumnIndexSelector). Implementors of this interface should provide as many of them as possible to participate fully in as manyFilteras possible, as different filters require different index types, and may prefer some over others. Indexes for matching a row to a specific value:- Specified by:
asin interfaceColumnIndexSupplier- See Also:
-