Class IcebergArrowVectors.VarcharArrowVector
- java.lang.Object
-
- org.apache.arrow.vector.BaseValueVector
-
- org.apache.arrow.vector.BaseVariableWidthVector
-
- org.apache.arrow.vector.VarCharVector
-
- org.apache.iceberg.arrow.vectorized.IcebergArrowVectors.VarcharArrowVector
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Iterable<org.apache.arrow.vector.ValueVector>,org.apache.arrow.vector.DensityAwareVector,org.apache.arrow.vector.FieldVector,org.apache.arrow.vector.ValueVector,org.apache.arrow.vector.VariableWidthVector,org.apache.arrow.vector.VectorDefinitionSetter
- Enclosing class:
- IcebergArrowVectors
public static class IcebergArrowVectors.VarcharArrowVector extends org.apache.arrow.vector.VarCharVectorExtension of Arrow's @VarCharVector. The reason of having this implementation is to override the expensiveBaseVariableWidthVector.isSet(int)method called byVarCharVector.get(int, NullableVarCharHolder)
-
-
Constructor Summary
Constructors Constructor Description VarcharArrowVector(java.lang.String name, org.apache.arrow.memory.BufferAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intisSet(int index)Same asBaseVariableWidthVector.isNull(int).voidsetNullabilityHolder(NullabilityHolder nullabilityHolder)-
Methods inherited from class org.apache.arrow.vector.VarCharVector
copyFrom, copyFromSafe, get, get, getMinorType, getObject, getReader, getTransferPair, makeTransferPair, set, set, set, setSafe, setSafe, setSafe
-
Methods inherited from class org.apache.arrow.vector.BaseVariableWidthVector
allocateNew, allocateNew, allocateNewSafe, clear, close, fillEmpties, fillHoles, get, getBuffers, getBufferSize, getBufferSizeFor, getByteCapacity, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDensity, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getStartEnd, getstartOffset, getStartOffset, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, getValueLength, handleSafe, initializeChildrenFromFields, isNull, isSafe, loadFieldBuffers, reAlloc, reallocDataBuffer, reallocValidityAndOffsetBuffers, reset, set, set, set, set, set, set, setBytes, setIndexDefined, setInitialCapacity, setInitialCapacity, setLastSet, setNull, setSafe, setSafe, setSafe, setSafe, setSafe, setValueCount, setValueLengthSafe, sizeOfValueBuffer, splitAndTransferTo, transferTo, zeroVector
-
Methods inherited from class org.apache.arrow.vector.BaseValueVector
checkBufRefs, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString, transferBuffer
-
-
-
-
Method Detail
-
isSet
public int isSet(int index)
Same asBaseVariableWidthVector.isNull(int).- Overrides:
isSetin classorg.apache.arrow.vector.BaseVariableWidthVector- Parameters:
index- position of element- Returns:
- 1 if element at given index is not null, 0 otherwise
-
setNullabilityHolder
public void setNullabilityHolder(NullabilityHolder nullabilityHolder)
-
-