public class NilVectorSelector extends Object implements VectorValueSelector, VectorObjectSelector, SingleValueDimensionVectorSelector, IdLookup
CARDINALITY_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
static NilVectorSelector |
create(VectorSizeInspector vectorSizeInspector) |
int |
getCurrentVectorSize()
Returns the current vector size for this cursor.
|
double[] |
getDoubleVector()
Get the current vector, casting to doubles as necessary.
|
float[] |
getFloatVector()
Get the current vector, casting to floats as necessary.
|
long[] |
getLongVector()
Get the current vector, casting to longs as necessary.
|
int |
getMaxVectorSize()
Returns the maximum vector size for this cursor.
|
boolean[] |
getNullVector()
Gets a vector of booleans signifying which rows are null and which are not (true for null).
|
Object[] |
getObjectVector()
Get the current vector.
|
int[] |
getRowVector()
Get the current vector.
|
int |
getValueCardinality()
Value cardinality is the cardinality of the different occurring values.
|
IdLookup |
idLookup()
Returns
IdLookup if available for this DimensionSelector, or null. |
int |
lookupId(String name)
Inverse of
DimensionDictionarySelector.lookupName(int). |
String |
lookupName(int id)
The Name is the String name of the actual field.
|
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. |
public static NilVectorSelector create(VectorSizeInspector vectorSizeInspector)
public long[] getLongVector()
VectorValueSelectorgetLongVector in interface VectorValueSelectorpublic float[] getFloatVector()
VectorValueSelectorgetFloatVector in interface VectorValueSelectorpublic double[] getDoubleVector()
VectorValueSelectorgetDoubleVector in interface VectorValueSelector@Nullable public boolean[] getNullVector()
VectorValueSelectorgetNullVector in interface VectorValueSelectorpublic int[] getRowVector()
SingleValueDimensionVectorSelectorgetRowVector in interface SingleValueDimensionVectorSelectorpublic int getValueCardinality()
DimensionDictionarySelectorgetValueCardinality in interface DimensionDictionarySelectorDimensionDictionarySelector.CARDINALITY_UNKNOWN if unknown.@Nullable public String lookupName(int id)
DimensionDictionarySelectorlookupName in interface DimensionDictionarySelectorid - id to lookup the field name forpublic boolean nameLookupPossibleInAdvance()
DimensionDictionarySelectorDimensionDictionarySelector.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()
DimensionDictionarySelectorIdLookup if available for this DimensionSelector, or null.idLookup in interface DimensionDictionarySelectorpublic int lookupId(@Nullable String name)
IdLookupDimensionDictionarySelector.lookupName(int).public Object[] getObjectVector()
VectorObjectSelectorgetObjectVector in interface VectorObjectSelectorpublic int getCurrentVectorSize()
VectorSizeInspectorVectorSizeInspector.getMaxVectorSize().getCurrentVectorSize in interface VectorSizeInspectorpublic int getMaxVectorSize()
VectorSizeInspectorgetMaxVectorSize in interface VectorSizeInspectorCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.