Package org.apache.drill.exec.vector
Class Var16CharVector.Accessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.Var16CharVector.Accessor
- All Implemented Interfaces:
ValueVector.Accessor
,VariableWidthVector.VariableWidthAccessor
- Enclosing class:
- Var16CharVector
public final class Var16CharVector.Accessor
extends BaseValueVector.BaseAccessor
implements VariableWidthVector.VariableWidthAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
get
(int index) void
get
(int index, NullableVar16CharHolder holder) void
get
(int index, Var16CharHolder holder) getObject
(int index) Get the Java Object representation of the element at the specified position.long
getStartEnd
(int index) int
Returns the number of values that is stored in this vector.int
getValueLength
(int index) boolean
isNull
(int index) Returns true if the value at the given index is null, false otherwise.
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
getStartEnd
public long getStartEnd(int index) -
get
public byte[] get(int index) -
getValueLength
public int getValueLength(int index) - Specified by:
getValueLength
in interfaceVariableWidthVector.VariableWidthAccessor
-
get
-
get
-
getObject
Description copied from interface:ValueVector.Accessor
Get the Java Object representation of the element at the specified position. Useful for testing.- Specified by:
getObject
in interfaceValueVector.Accessor
- Parameters:
index
- Index of the value to 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
-
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
- Overrides:
isNull
in classBaseValueVector.BaseAccessor
-
getOffsetVector
-