public class VirtualizedColumnSelectorFactory extends VirtualizedColumnInspector implements ColumnSelectorFactory
ColumnSelectorFactory which can create selectors for both virtual and non-virtual columnsbaseInspector, virtualColumns| Constructor and Description |
|---|
VirtualizedColumnSelectorFactory(ColumnSelectorFactory baseFactory,
VirtualColumns virtualColumns) |
| Modifier and Type | Method and Description |
|---|---|
RowIdSupplier |
getRowIdSupplier()
Returns a
RowIdSupplier that allows callers to detect whether the selectors returned by this
factory have moved or not. |
ColumnValueSelector<?> |
makeColumnValueSelector(String columnName)
Returns ColumnValueSelector corresponding to the given column name, or
NilColumnValueSelector if the
column with such name is absent. |
DimensionSelector |
makeDimensionSelector(DimensionSpec dimensionSpec) |
getColumnCapabilitiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCapabilitiesgetColumnCapabilitiesWithDefault, getTypeareNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorizepublic VirtualizedColumnSelectorFactory(ColumnSelectorFactory baseFactory, VirtualColumns virtualColumns)
public DimensionSelector makeDimensionSelector(DimensionSpec dimensionSpec)
makeDimensionSelector in interface ColumnSelectorFactorypublic ColumnValueSelector<?> makeColumnValueSelector(String columnName)
ColumnSelectorFactoryNilColumnValueSelector if the
column with such name is absent.makeColumnValueSelector in interface ColumnSelectorFactory@Nullable public RowIdSupplier getRowIdSupplier()
ColumnSelectorFactoryRowIdSupplier that 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.getRowIdSupplier in interface ColumnSelectorFactoryCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.