Package org.apache.drill.exec.vector
Class TinyIntVector.Accessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.TinyIntVector.Accessor
- All Implemented Interfaces:
ValueVector.Accessor
- Enclosing class:
TinyIntVector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteget(int index) voidget(int index, NullableTinyIntHolder holder) voidget(int index, TinyIntHolder holder) getObject(int index) Get the Java Object representation of the element at the specified position.bytegetPrimitiveObject(int index) intReturns the number of values that is stored in this vector.booleanisNull(int index) Returns true if the value at the given index is null, false otherwise.
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
getValueCount
public int getValueCount()Description copied from interface:ValueVector.AccessorReturns the number of values that is stored in this vector. -
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
-
get
public byte get(int index) -
getObject
Description copied from interface:ValueVector.AccessorGet the Java Object representation of the element at the specified position. Useful for testing.- Parameters:
index- Index of the value to get
-
getPrimitiveObject
public byte getPrimitiveObject(int index) -
get
-
get
-