Package org.apache.druid.math.expr
Class ExpressionPredicateIndexSupplier
- java.lang.Object
-
- org.apache.druid.math.expr.ExpressionPredicateIndexSupplier
-
- All Implemented Interfaces:
ColumnIndexSupplier
public class ExpressionPredicateIndexSupplier extends Object implements ColumnIndexSupplier
-
-
Constructor Summary
Constructors Constructor Description ExpressionPredicateIndexSupplier(Expr expr, String inputColumn, ExpressionType inputType, ColumnType outputType, DictionaryEncodedValueIndex<?> inputColumnValueIndexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tas(Class<T> clazz)Try to get a column 'index' of the specified type.
-
-
-
Constructor Detail
-
ExpressionPredicateIndexSupplier
public ExpressionPredicateIndexSupplier(Expr expr, String inputColumn, ExpressionType inputType, ColumnType outputType, DictionaryEncodedValueIndex<?> inputColumnValueIndexes)
-
-
Method Detail
-
as
@Nullable public <T> T as(Class<T> clazz)
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.- Specified by:
asin interfaceColumnIndexSupplier
-
-