Class HeapFloatVector
- java.lang.Object
-
- org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
-
- org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
-
- org.apache.flink.table.data.columnar.vector.heap.HeapFloatVector
-
- All Implemented Interfaces:
Serializable
,ColumnVector
,FloatColumnVector
,WritableColumnVector
,WritableFloatVector
@Internal public class HeapFloatVector extends AbstractHeapVector implements WritableFloatVector
This class represents a nullable double precision floating point column vector. This class will be used for operations on all floating point float types.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description float[]
vector
-
Fields inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFE
-
Fields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls
-
-
Constructor Summary
Constructors Constructor Description HeapFloatVector(int len)
Don't use this except for testing purposes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill(float value)
Fill the column vector with the provided value.float
getFloat(int i)
void
setFloat(int i, float value)
Set float at rowId with the provided value.void
setFloatsFromBinary(int rowId, int count, byte[] src, int srcIndex)
Set floats from binary, need use UNSAFE to copy.-
Methods inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
fillWithNulls, getDictionaryIds, getLen, isNullAt, reserveDictionaryIds, reset, setNullAt, setNulls
-
Methods inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
hasDictionary, setDictionary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAt
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.writable.WritableColumnVector
fillWithNulls, getDictionaryIds, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
-
-
-
-
Method Detail
-
getFloat
public float getFloat(int i)
- Specified by:
getFloat
in interfaceFloatColumnVector
-
setFloat
public void setFloat(int i, float value)
Description copied from interface:WritableFloatVector
Set float at rowId with the provided value.- Specified by:
setFloat
in interfaceWritableFloatVector
-
setFloatsFromBinary
public void setFloatsFromBinary(int rowId, int count, byte[] src, int srcIndex)
Description copied from interface:WritableFloatVector
Set floats from binary, need use UNSAFE to copy.- Specified by:
setFloatsFromBinary
in interfaceWritableFloatVector
- Parameters:
rowId
- set start rowId.count
- count for float, so the bytes size is count * 4.src
- source binary.srcIndex
- source binary index, it is the index for byte index.
-
fill
public void fill(float value)
Description copied from interface:WritableFloatVector
Fill the column vector with the provided value.- Specified by:
fill
in interfaceWritableFloatVector
-
-