Class AbstractRepeatedMapVector.Accessor
java.lang.Object
org.apache.drill.exec.vector.complex.AbstractRepeatedMapVector.Accessor
- All Implemented Interfaces:
RepeatedValueVector.RepeatedAccessor
,ValueVector.Accessor
- Direct Known Subclasses:
DictVector.Accessor
,RepeatedMapVector.Accessor
- Enclosing class:
- AbstractRepeatedMapVector
public abstract class AbstractRepeatedMapVector.Accessor
extends Object
implements RepeatedValueVector.RepeatedAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
get
(int index, RepeatedValueHolder holder) int
int
getInnerValueCountAt
(int index) int
Returns the number of values that is stored in this vector.boolean
isEmpty
(int index) boolean
isNull
(int index) Returns true if the value at the given index is null, false otherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.vector.ValueVector.Accessor
getObject
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
get
-
getValueCount
public int getValueCount()Description copied from interface:ValueVector.Accessor
Returns the number of values that is stored in this vector.- Specified by:
getValueCount
in interfaceValueVector.Accessor
-
getInnerValueCount
public int getInnerValueCount()- Specified by:
getInnerValueCount
in interfaceRepeatedValueVector.RepeatedAccessor
- Returns:
- total number of cells that vector contains. The result includes empty, null valued cells.
-
getInnerValueCountAt
public int getInnerValueCountAt(int index) - Specified by:
getInnerValueCountAt
in interfaceRepeatedValueVector.RepeatedAccessor
- Returns:
- number of cells that the value at the given index contains.
-
isEmpty
public boolean isEmpty(int index) - Specified by:
isEmpty
in interfaceRepeatedValueVector.RepeatedAccessor
- Parameters:
index
- value index- Returns:
- true if the value at the given index is empty, false otherwise.
-
isNull
public boolean isNull(int index) Description copied from interface:ValueVector.Accessor
Returns true if the value at the given index is null, false otherwise.- Specified by:
isNull
in interfaceValueVector.Accessor
-