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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget(int index, RepeatedValueHolder holder) intintgetInnerValueCountAt(int index) intReturns the number of values that is stored in this vector.booleanisEmpty(int index) booleanisNull(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, waitMethods 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.AccessorReturns the number of values that is stored in this vector.- Specified by:
getValueCountin interfaceValueVector.Accessor
-
getInnerValueCount
public int getInnerValueCount()- Specified by:
getInnerValueCountin 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:
getInnerValueCountAtin interfaceRepeatedValueVector.RepeatedAccessor- Returns:
- number of cells that the value at the given index contains.
-
isEmpty
public boolean isEmpty(int index) - Specified by:
isEmptyin 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.AccessorReturns true if the value at the given index is null, false otherwise.- Specified by:
isNullin interfaceValueVector.Accessor
-