Package org.apache.drill.exec.vector
Class NullableSmallIntVector.Accessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.NullableSmallIntVector.Accessor
- All Implemented Interfaces:
ValueVector.Accessor
- Enclosing class:
- NullableSmallIntVector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionshort
get
(int index) Get the element at the specified position.void
get
(int index, NullableSmallIntHolder holder) getObject
(int index) Get the Java Object representation of the element at the specified position.int
Returns the number of values that is stored in this vector.boolean
isNull
(int index) Returns true if the value at the given index is null, false otherwise.int
isSet
(int index) void
reset()
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
get
public short 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.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
-
isSet
public int isSet(int index) -
get
-
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
-
getValueCount
public int getValueCount()Description copied from interface:ValueVector.Accessor
Returns the number of values that is stored in this vector. -
reset
public void reset()
-