Package org.apache.druid.segment
Interface ColumnSelectorFactory
- All Superinterfaces:
ColumnInspector,Expr.InputBindingInspector
- All Known Implementing Classes:
AllNullColumnSelectorFactory,DefaultColumnSelectorFactoryMaker.ColumnAccessorBasedColumnSelectorFactory,FrameColumnSelectorFactory,IndexedTableColumnSelectorFactory,LookupColumnSelectorFactory,MultiColumnSelectorFactory,QueryableIndexColumnSelectorFactory,RemapColumnSelectorFactory,RowBasedColumnSelectorFactory,SettableCursorColumnSelectorFactory,ShimColumnSelectorFactory,VirtualizedColumnSelectorFactory
Factory class for MetricSelectors
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnCapabilities(String column) Returns capabilities of a particular column, if known.default RowIdSupplierReturns aRowIdSupplierthat allows callers to detect whether the selectors returned by this factory have moved or not.makeColumnValueSelector(String columnName) Returns ColumnValueSelector corresponding to the given column name, orNilColumnValueSelectorif the column with such name is absent.makeDimensionSelector(DimensionSpec dimensionSpec) Methods inherited from interface org.apache.druid.segment.ColumnInspector
getTypeMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Method Details
-
makeDimensionSelector
-
makeColumnValueSelector
Returns ColumnValueSelector corresponding to the given column name, orNilColumnValueSelectorif the column with such name is absent. -
getColumnCapabilities
Returns capabilities of a particular column, if known. May be null if the column doesn't exist, or if the column does exist but the capabilities are unknown. The latter is possible with dynamically discovered columns.- Specified by:
getColumnCapabilitiesin interfaceColumnInspector- Parameters:
column- column name- Returns:
- capabilities, or null
-
getRowIdSupplier
Returns aRowIdSupplierthat allows callers to detect whether the selectors returned by this factory have moved or not. Useful for selectors that wrap other selectors, such as virtual columns, as it allows them to cache their outputs.
-