Class BaseRepeatedValueVector.BaseRepeatedAccessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedAccessor
- All Implemented Interfaces:
RepeatedValueVector.RepeatedAccessor,ValueVector.Accessor
- Direct Known Subclasses:
ListVector.Accessor,RepeatedBigIntVector.Accessor,RepeatedBitVector.Accessor,RepeatedDateVector.Accessor,RepeatedDecimal18Vector.Accessor,RepeatedDecimal28DenseVector.Accessor,RepeatedDecimal28SparseVector.Accessor,RepeatedDecimal38DenseVector.Accessor,RepeatedDecimal38SparseVector.Accessor,RepeatedDecimal9Vector.Accessor,RepeatedDictVector.Accessor,RepeatedFloat4Vector.Accessor,RepeatedFloat8Vector.Accessor,RepeatedIntervalDayVector.Accessor,RepeatedIntervalVector.Accessor,RepeatedIntervalYearVector.Accessor,RepeatedIntVector.Accessor,RepeatedListVector.DelegateRepeatedVector.RepeatedListAccessor,RepeatedSmallIntVector.Accessor,RepeatedTimeStampVector.Accessor,RepeatedTimeVector.Accessor,RepeatedTinyIntVector.Accessor,RepeatedUInt1Vector.Accessor,RepeatedUInt2Vector.Accessor,RepeatedUInt4Vector.Accessor,RepeatedUInt8Vector.Accessor,RepeatedVar16CharVector.Accessor,RepeatedVarBinaryVector.Accessor,RepeatedVarCharVector.Accessor,RepeatedVarDecimalVector.Accessor
- Enclosing class:
BaseRepeatedValueVector
public abstract class BaseRepeatedValueVector.BaseRepeatedAccessor
extends BaseValueVector.BaseAccessor
implements RepeatedValueVector.RepeatedAccessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetInnerValueCountAt(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
-
BaseRepeatedAccessor
public BaseRepeatedAccessor()
-
-
Method Details
-
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.
-
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- Overrides:
isNullin classBaseValueVector.BaseAccessor
-
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.
-