Package org.apache.druid.segment.column
Interface ColumnIndexSupplier
-
- All Known Implementing Classes:
ExpressionPredicateIndexSupplier,NestedDataColumnSupplier,NestedFieldColumnIndexSupplier,NoIndexesColumnIndexSupplier,NullValueIndexSupplier,ScalarDoubleColumnAndIndexSupplier,ScalarLongColumnAndIndexSupplier,ScalarStringColumnAndIndexSupplier,StringUtf8ColumnIndexSupplier,VariantColumnAndIndexSupplier
public interface ColumnIndexSupplierProvides indexes and information about them (ColumnIndexCapabilities) for a column. Indexes which satisfy theFilterused in aQuery, allow the query engine to constructOffset(andVectorOffset) to buildCursor(andVectorCursor). This allows the engine to only scan the rows which match the filter values, instead of performing a full scan of the column and using aValueMatcher(orVectorValueMatcher) to filter the values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tas(Class<T> clazz)Try to get a column 'index' of the specified type.
-
-
-
Method Detail
-
as
@Nullable <T> T as(Class<T> clazz)
Try 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.
-
-