public class QueryableIndexColumnSelectorFactory extends Object implements ColumnSelectorFactory, RowIdSupplier
ColumnSelectorFactory over a historical segment (i. e. QueryableIndex).
It's counterpart for incremental index is IncrementalIndexColumnSelectorFactory.| Modifier and Type | Field and Description |
|---|---|
protected ReadableOffset |
offset |
INIT| Constructor and Description |
|---|
QueryableIndexColumnSelectorFactory(VirtualColumns virtualColumns,
boolean descending,
ReadableOffset offset,
ColumnCache columnCache) |
| Modifier and Type | Method and Description |
|---|---|
ColumnCapabilities |
getColumnCapabilities(String columnName)
Returns capabilities of a particular column, if known.
|
long |
getRowId()
Returns a number that uniquely identifies the current position of some underlying cursor.
|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCapabilitiesWithDefault, getTypeareNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorizeprotected final ReadableOffset offset
public QueryableIndexColumnSelectorFactory(VirtualColumns virtualColumns, boolean descending, ReadableOffset offset, ColumnCache columnCache)
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 ColumnSelectorFactorypublic long getRowId()
RowIdSuppliergetRowId in interface RowIdSupplier@Nullable public ColumnCapabilities getColumnCapabilities(String columnName)
ColumnSelectorFactorygetColumnCapabilities in interface ColumnInspectorgetColumnCapabilities in interface ColumnSelectorFactorycolumnName - column nameCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.