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