- 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 TypeMethodDescriptionlonggetValueAsLong(int index) Gets the value at index.voidsetUnsafeWithPossibleTruncate(int index, long value) Sets the value at index, note this value may need to be truncated.voidsetWithPossibleTruncate(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, setNullMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods 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 throwNullPointerExceptionif the value is null. Note null check could be turned off viaNullCheckingForGet.
-