public class MapVector extends ListVector
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_VECTOR_NAME |
static String |
KEY_NAME |
static String |
VALUE_NAME |
field, lastSet, reader, validityAllocationSizeInBytes, validityBufferDEFAULT_DATA_VECTOR, defaultDataVectorName, OFFSET_WIDTH, offsetAllocationSizeInBytes, offsetBuffer, repeatedCallBack, valueCount, vectorallocator, fieldReader, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTYDEFAULT_REPEAT_PER_RECORD| Constructor and Description |
|---|
MapVector(Field field,
BufferAllocator allocator,
CallBack callBack) |
MapVector(String name,
BufferAllocator allocator,
FieldType fieldType,
CallBack callBack)
Construct a MapVector instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MapVector |
empty(String name,
BufferAllocator allocator,
boolean keysSorted)
Construct an empty MapVector with no data.
|
Types.MinorType |
getMinorType() |
UnionMapReader |
getReader()
Get the reader for this MapVector instance.
|
TransferPair |
getTransferPair(Field field,
BufferAllocator allocator)
To transfer quota responsibility.
|
TransferPair |
getTransferPair(Field field,
BufferAllocator allocator,
CallBack callBack)
To transfer quota responsibility.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
To transfer quota responsibility.
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack)
To transfer quota responsibility.
|
UnionMapWriter |
getWriter()
Get the writer for this MapVector instance.
|
void |
initializeChildrenFromFields(List<Field> children)
Initialize child vectors of the map from the given list of fields.
|
TransferPair |
makeTransferPair(ValueVector target)
Makes a new transfer pair used to transfer underlying buffers.
|
accept, addOrGetVector, allocateNew, allocateNewSafe, allocateValidityBuffer, clear, copyFrom, copyFromSafe, empty, endValue, exportCDataBuffers, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDataVector, getDensity, getElementEndIndex, getElementStartIndex, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getNullCount, getObject, getOffsetBuffer, getOffsetBufferAddress, getReaderImpl, getValidityBuffer, getValidityBufferAddress, getValueCapacity, hashCode, hashCode, invalidateReader, isEmpty, isNull, isSet, loadFieldBuffers, promoteToUnion, reAlloc, reallocValidityAndOffsetBuffers, reset, setInitialCapacity, setInitialCapacity, setInitialTotalCapacity, setLastSet, setNotNull, setNull, setValueCount, startNewValueallocateOffsetBuffer, getInnerValueCount, getInnerValueCountAt, getName, getOffsetBufferValueCapacity, getOffsetVector, getValueCount, iterator, reallocOffsetBuffer, replaceDataVector, sizecheckBufRefs, close, getAllocator, getTransferPair, getValidityBufferSizeFromCount, releaseBuffer, toString, transferBufferclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexportBufferclose, getAllocator, getTransferPair, validate, validateFullforEach, spliteratorpublic static final String KEY_NAME
public static final String VALUE_NAME
public static final String DATA_VECTOR_NAME
public MapVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack callBack)
name - The name of the vector.allocator - The allocator used for allocating/reallocating buffers.fieldType - The type definition of the MapVector.callBack - A schema change callback.public MapVector(Field field, BufferAllocator allocator, CallBack callBack)
public static MapVector empty(String name, BufferAllocator allocator, boolean keysSorted)
name - The name of the vector.allocator - The allocator used for allocating/reallocating buffers.keysSorted - True if the map keys have been pre-sorted.public void initializeChildrenFromFields(List<Field> children)
initializeChildrenFromFields in interface FieldVectorinitializeChildrenFromFields in class ListVectorchildren - List of fields that will be children of this MapVector.public UnionMapWriter getWriter()
getWriter in class ListVectorpublic UnionMapReader getReader()
getReader in interface ValueVectorgetReader in class ListVectorpublic Types.MinorType getMinorType()
getMinorType in interface ValueVectorgetMinorType in class ListVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class ListVectorref - the name of the vectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(Field field, BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class ListVectorfield - the Field object used by the target vectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class ListVectorref - the name of the vectorallocator - the target allocatorcallBack - A schema change callback.transfer pair, creating a new target vector of
the same type.public TransferPair getTransferPair(Field field, BufferAllocator allocator, CallBack callBack)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class ListVectorfield - the Field object used by the target vectorallocator - the target allocatorcallBack - A schema change callback.transfer pair, creating a new target vector of
the same type.public TransferPair makeTransferPair(ValueVector target)
ValueVectormakeTransferPair in interface ValueVectormakeTransferPair in class ListVectortarget - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.Copyright © 2024 The Apache Software Foundation. All rights reserved.