Package org.apache.arrow.vector
Interface FloatingPointVector
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterable<ValueVector>
,ValueVector
- All Known Implementing Classes:
Float2Vector
,Float4Vector
,Float8Vector
The interface for vectors with floating point values.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getValueAsDouble
(int index) Gets the value at the given index.void
setSafeWithPossibleTruncate
(int index, double value) Sets the value at the given index, note this value may be truncated internally.void
setWithPossibleTruncate
(int index, double value) Sets the value at the given index, note this value may be truncated internally.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.apache.arrow.vector.ValueVector
accept, allocateNew, allocateNewSafe, clear, close, copyFrom, copyFromSafe, getAllocator, getBuffers, getBufferSize, getBufferSizeFor, getDataBuffer, getField, getMinorType, getName, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, hashCode, hashCode, isNull, makeTransferPair, reAlloc, reset, setInitialCapacity, setValueCount, validate, validateFull
-
Method Details
-
setWithPossibleTruncate
void setWithPossibleTruncate(int index, double value) Sets the value at the given index, note this value may be truncated internally.- Parameters:
index
- the index to set.value
- the value to set.
-
setSafeWithPossibleTruncate
void setSafeWithPossibleTruncate(int index, double value) Sets the value at the given index, note this value may be truncated internally. Any expansion/reallocation is handled automatically.- Parameters:
index
- the index to set.value
- the value to set.
-
getValueAsDouble
double getValueAsDouble(int index) Gets the value at the given index.- Parameters:
index
- the index to retrieve the value.- Returns:
- the value at the index.
-