Package org.apache.drill.exec.vector
Class Float4Vector.Accessor
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.Float4Vector.Accessor
- All Implemented Interfaces:
ValueVector.Accessor
- Enclosing class:
- Float4Vector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
get
(int index) void
get
(int index, Float4Holder holder) void
get
(int index, NullableFloat4Holder holder) getObject
(int index) Get the Java Object representation of the element at the specified position.float
getPrimitiveObject
(int index) long
getTwoAsLong
(int index) 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.
-
Constructor Details
-
Accessor
public Accessor()
-
-
Method Details
-
getValueCount
public int getValueCount()Description copied from interface:ValueVector.Accessor
Returns the number of values that is stored in this vector. -
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
-
get
public float get(int index) -
getTwoAsLong
public long getTwoAsLong(int index) -
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
-
getPrimitiveObject
public float getPrimitiveObject(int index) -
get
-
get
-