public abstract static class StringUtf8DictionaryEncodedColumn.StringSingleValueDimensionVectorSelector extends Object implements SingleValueDimensionVectorSelector, IdLookup
SingleValueDimensionVectorSelector
for a dictionary encoded ColumnType.STRING
built around a ColumnarInts
. Dictionary not included - BYO dictionary lookup methods.
Assumes that all implementations return true for supportsLookupNameUtf8()
.CARDINALITY_UNKNOWN
Constructor and Description |
---|
StringSingleValueDimensionVectorSelector(ColumnarInts column,
ReadableVectorOffset offset) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentVectorSize()
Returns the current vector size for this cursor.
|
int |
getMaxVectorSize()
Returns the maximum vector size for this cursor.
|
int[] |
getRowVector()
Get the current vector.
|
IdLookup |
idLookup()
Returns
IdLookup if available for this DimensionSelector, or null. |
boolean |
nameLookupPossibleInAdvance()
Returns true if it is possible to
DimensionDictionarySelector.lookupName(int) by ids from 0 to DimensionDictionarySelector.getValueCardinality()
before the rows with those ids are returned. |
boolean |
supportsLookupNameUtf8()
Returns whether this selector supports
DimensionDictionarySelector.lookupNameUtf8(int) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueCardinality, lookupName, lookupNameUtf8
public StringSingleValueDimensionVectorSelector(ColumnarInts column, ReadableVectorOffset offset)
public int[] getRowVector()
SingleValueDimensionVectorSelector
getRowVector
in interface SingleValueDimensionVectorSelector
public boolean supportsLookupNameUtf8()
DimensionDictionarySelector
DimensionDictionarySelector.lookupNameUtf8(int)
.supportsLookupNameUtf8
in interface DimensionDictionarySelector
public boolean nameLookupPossibleInAdvance()
DimensionDictionarySelector
DimensionDictionarySelector.lookupName(int)
by ids from 0 to DimensionDictionarySelector.getValueCardinality()
before the rows with those ids are returned.
Returns false if DimensionDictionarySelector.lookupName(int)
could be called with ids, returned from the most recent row (or row
vector) returned by this DimensionSelector, but not earlier. If DimensionDictionarySelector.getValueCardinality()
of this
selector additionally returns DimensionDictionarySelector.CARDINALITY_UNKNOWN
, lookupName()
couldn't be called with
ids, returned by not the most recent row (or row vector), i. e. names for ids couldn't be looked up "later". If
DimensionDictionarySelector.getValueCardinality()
returns a non-negative number, lookupName()
could be called with any ids,
returned from rows (or row vectors) returned since the creation of this DimensionSelector.
If DimensionDictionarySelector.lookupName(int)
is called with an ineligible id, result is undefined: exception could be thrown, or
null returned, or some other random value.
nameLookupPossibleInAdvance
in interface DimensionDictionarySelector
@Nullable public IdLookup idLookup()
DimensionDictionarySelector
IdLookup
if available for this DimensionSelector, or null.idLookup
in interface DimensionDictionarySelector
public int getCurrentVectorSize()
VectorSizeInspector
VectorSizeInspector.getMaxVectorSize()
.getCurrentVectorSize
in interface VectorSizeInspector
public int getMaxVectorSize()
VectorSizeInspector
getMaxVectorSize
in interface VectorSizeInspector
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.