Package org.apache.drill.exec.vector
Class RepeatedVarBinaryVector.Accessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedAccessor
org.apache.drill.exec.vector.RepeatedVarBinaryVector.Accessor
- All Implemented Interfaces:
RepeatedValueVector.RepeatedAccessor
,ValueVector.Accessor
- Enclosing class:
- RepeatedVarBinaryVector
public final class RepeatedVarBinaryVector.Accessor
extends BaseRepeatedValueVector.BaseRepeatedAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
get
(int index, int positionIndex) Get a value for the given record.void
get
(int index, int positionIndex, NullableVarBinaryHolder holder) void
get
(int index, int positionIndex, VarBinaryHolder holder) void
get
(int index, RepeatedVarBinaryHolder holder) List<byte[]>
getObject
(int index) Get the Java Object representation of the element at the specified position.byte[]
getSingleObject
(int index, int arrayIndex) Methods inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedAccessor
getInnerValueCount, getInnerValueCountAt, getValueCount, isEmpty, isNull
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
getObject
Description copied from interface:ValueVector.Accessor
Get the Java Object representation of the element at the specified position. Useful for testing.- Parameters:
index
- Index of the value to get
-
getSingleObject
public byte[] getSingleObject(int index, int arrayIndex) -
get
public byte[] get(int index, int positionIndex) Get a value for the given record. Each element in the repeated field is accessed by the positionIndex param.- Parameters:
index
- record containing the repeated fieldpositionIndex
- position within the repeated field- Returns:
- element at the given position in the given record
-
get
-
get
-
get
-