public interface FieldVector extends ValueVector
| Modifier and Type | Method and Description |
|---|---|
default void |
exportBuffer(ArrowBuf buffer,
List<ArrowBuf> buffers,
ArrowBuf buffersPtr,
long nullValue,
boolean retain)
Export a given buffer and its memory address into a list of buffers and a pointer to the list of buffers.
|
default void |
exportCDataBuffers(List<ArrowBuf> buffers,
ArrowBuf buffersPtr,
long nullValue)
Export the buffers of the fields for C Data Interface.
|
List<FieldVector> |
getChildrenFromFields()
The returned list is the same size as the list passed to initializeChildrenFromFields.
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector.
|
List<ArrowBuf> |
getFieldBuffers()
Get the buffers of the fields, (same size as getFieldVectors() since it is their content).
|
List<BufferBacked> |
getFieldInnerVectors()
Deprecated.
This API will be removed as the current implementations no longer support inner vectors.
|
long |
getOffsetBufferAddress()
Gets the starting address of the underlying buffer associated with offset vector.
|
long |
getValidityBufferAddress()
Gets the starting address of the underlying buffer associated with validity vector.
|
void |
initializeChildrenFromFields(List<Field> children)
Initializes the child vectors
to be later loaded with loadBuffers.
|
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
Loads data in the vectors.
|
void |
setNull(int index)
Set the element at the given index to null.
|
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, validateFullforEach, iterator, spliteratorvoid initializeChildrenFromFields(List<Field> children)
children - the schemaList<FieldVector> getChildrenFromFields()
void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
fieldNode - the fieldNodeownBuffers - the buffers for this Field (own buffers only, children not included)List<ArrowBuf> getFieldBuffers()
default void exportBuffer(ArrowBuf buffer, List<ArrowBuf> buffers, ArrowBuf buffersPtr, long nullValue, boolean retain)
buffer - the buffer to exportbuffers - the list of buffersbuffersPtr - the pointer to the list of buffersnullValue - the null value to use for null bufferretain - whether to retain the buffer when exportingdefault void exportCDataBuffers(List<ArrowBuf> buffers, ArrowBuf buffersPtr, long nullValue)
@Deprecated List<BufferBacked> getFieldInnerVectors()
long getValidityBufferAddress()
long getDataBufferAddress()
long getOffsetBufferAddress()
void setNull(int index)
index - the value to changeCopyright © 2024 The Apache Software Foundation. All rights reserved.