Package org.apache.arrow.vector
Interface BaseIntVector
- All Superinterfaces:
AutoCloseable
,Closeable
,FieldVector
,Iterable<ValueVector>
,ValueVector
- All Known Implementing Classes:
BigIntVector
,IntVector
,SmallIntVector
,TinyIntVector
,UInt1Vector
,UInt2Vector
,UInt4Vector
,UInt8Vector
Interface for all int type vectors.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getValueAsLong
(int index) Gets the value at index.void
setUnsafeWithPossibleTruncate
(int index, long value) Sets the value at index, note this value may need to be truncated.void
setWithPossibleTruncate
(int index, long value) Sets the value at index, note this value may need to be truncated.Methods inherited from interface org.apache.arrow.vector.FieldVector
exportBuffer, exportCDataBuffers, getChildrenFromFields, getDataBufferAddress, getExportedCDataBufferCount, getFieldBuffers, getFieldInnerVectors, getOffsetBufferAddress, getValidityBufferAddress, initializeChildrenFromFields, loadFieldBuffers, setNull
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, long value) Sets the value at index, note this value may need to be truncated. Note this is safe version (i.e. call setSafe(int, ...) method in vector) -
setUnsafeWithPossibleTruncate
void setUnsafeWithPossibleTruncate(int index, long value) Sets the value at index, note this value may need to be truncated. Note this is unsafe version (i.e. call set(int, ...) method in vector) -
getValueAsLong
long getValueAsLong(int index) Gets the value at index. This value may have been extended to long and will throwNullPointerException
if the value is null. Note null check could be turned off viaNullCheckingForGet
.
-