public class MapVector extends ListVector
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_VECTOR_NAME |
static String |
KEY_NAME |
static String |
VALUE_NAME |
reader, validityBufferDEFAULT_DATA_VECTOR, defaultDataVectorName, OFFSET_WIDTH, offsetAllocationSizeInBytes, offsetBuffer, valueCount, vectorallocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTYDEFAULT_REPEAT_PER_RECORD| Constructor and Description |
|---|
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.
|
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.
|
accept, addOrGetVector, allocateNew, allocateNewSafe, clear, copyFrom, copyFromSafe, empty, endValue, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getDataVector, getDensity, getElementEndIndex, getElementStartIndex, getField, getFieldBuffers, getFieldInnerVectors, getLastSet, getNullCount, getObject, getOffsetBuffer, getOffsetBufferAddress, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, hashCode, hashCode, invalidateReader, isEmpty, isNull, isSet, loadFieldBuffers, makeTransferPair, promoteToUnion, reAlloc, reset, setInitialCapacity, setInitialCapacity, 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, waitclose, getAllocator, getTransferPairforEach, 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 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 ListVectorfield reader that supports reading values
from this vector.public Types.MinorType getMinorType()
getMinorType in interface ValueVectorgetMinorType in class ListVectorCopyright © 2021 The Apache Software Foundation. All rights reserved.