public class NullableMapVector extends MapVector implements FieldVector
| Modifier and Type | Class and Description |
|---|---|
class |
NullableMapVector.Accessor |
class |
NullableMapVector.Mutator |
protected class |
NullableMapVector.NullableMapTransferPair |
MapVector.MapTransferPair| Modifier and Type | Field and Description |
|---|---|
protected BitVector |
bits |
fieldType, valueCountallocator, callBack, name| Constructor and Description |
|---|
NullableMapVector(String name,
BufferAllocator allocator,
CallBack callBack)
Deprecated.
|
NullableMapVector(String name,
BufferAllocator allocator,
DictionaryEncoding dictionary,
CallBack callBack)
Deprecated.
|
NullableMapVector(String name,
BufferAllocator allocator,
FieldType fieldType,
CallBack callBack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Release the underlying ArrowBuf and reset the ValueVector to empty.
|
void |
close()
Clears out all underlying child vectors.
|
static NullableMapVector |
empty(String name,
BufferAllocator allocator) |
NullableMapVector.Accessor |
getAccessor() |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
ArrowBuf |
getDataBuffer()
Gets the underlying buffer associated with data vector
|
long |
getDataBufferAddress()
Gets the starting address of the underlying buffer associated with data vector
|
Field |
getField()
Get information about how this field is materialized.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors() |
NullableMapVector.Mutator |
getMutator() |
ArrowBuf |
getOffsetBuffer()
Gets the underlying buffer associated with offset vector
|
long |
getOffsetBufferAddress()
Gets the starting address of the underlying buffer associated with offset vector
|
NullableMapReaderImpl |
getReader() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
ArrowBuf |
getValidityBuffer()
Gets the underlying buffer associated with validity vector
|
long |
getValidityBufferAddress()
Gets the starting address of the underlying buffer associated with validity vector
|
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
NullableMapWriter |
getWriter() |
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector to)
makes a new transfer pair used to transfer underlying buffers
|
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
copyFromSafe, fieldNameIterator, getChildrenFromFields, getMinorType, getVectorById, initializeChildrenFromFields, supportsDirectReadadd, addOrGet, getChild, getChildByOrdinal, getChildFieldNames, getChildren, getChildVectorWithOrdinal, getPrimitiveVectors, iterator, putChild, putVector, sizeaddOrGetList, addOrGetMap, addOrGetUnion, allocateNew, getAllocator, getChild, typeifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrenFromFields, initializeChildrenFromFieldsallocateNew, getAllocator, getMinorTypeforEach, iterator, spliteratorprotected final BitVector bits
@Deprecated public NullableMapVector(String name, BufferAllocator allocator, CallBack callBack)
@Deprecated public NullableMapVector(String name, BufferAllocator allocator, DictionaryEncoding dictionary, CallBack callBack)
public NullableMapVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack callBack)
public static NullableMapVector empty(String name, BufferAllocator allocator)
public Field getField()
ValueVectorgetField in interface ValueVectorgetField in class MapVectorpublic void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVectorloadFieldBuffers in interface FieldVectorfieldNode - the fieldNodeownBuffers - the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVectorgetFieldBuffers in interface FieldVectorpublic List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors in interface FieldVectorpublic NullableMapReaderImpl getReader()
getReader in interface ValueVectorgetReader in class MapVectorfield reader that supports reading values
from this vector.public NullableMapWriter getWriter()
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVectorgetTransferPair in interface ValueVectorgetTransferPair in class MapVectorallocator - the target allocatortransfer pair, creating a new target vector of
the same type.public TransferPair makeTransferPair(ValueVector to)
ValueVectormakeTransferPair in interface ValueVectormakeTransferPair in class MapVectorto - the target for the transfertransfer pair that is used to transfer underlying
buffers into the target vector.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair in interface ValueVectorgetTransferPair in class MapVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair in interface ValueVectorgetTransferPair in class MapVectorpublic int getValueCapacity()
ValueVectorgetValueCapacity in interface ValueVectorgetValueCapacity in class MapVectorpublic ArrowBuf[] getBuffers(boolean clear)
ValueVectorgetBuffers in interface ValueVectorgetBuffers in class AbstractMapVectorclear - Whether to clear vector before returning; the buffers will still be refcounted;
but the returned array will be the only reference to thembuffers that is used by this vector instance.public void close()
AbstractContainerVectorclose in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorclose in class MapVectorpublic void clear()
ValueVectorclear in interface ValueVectorclear in class MapVectorpublic int getBufferSize()
getBufferSize in interface ValueVectorgetBufferSize in class MapVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorgetBufferSizeFor in interface ValueVectorgetBufferSizeFor in class MapVectorvalueCount - the number of values to assume this vector containspublic void setInitialCapacity(int numRecords)
ValueVectorsetInitialCapacity in interface ValueVectorsetInitialCapacity in class MapVectornumRecords - the initial record capacity.public boolean allocateNewSafe()
ValueVectorallocateNewSafe in interface ValueVectorallocateNewSafe in class AbstractMapVectorpublic void reAlloc()
ValueVectorreAlloc in interface ValueVectorreAlloc in class AbstractMapVectorpublic long getValidityBufferAddress()
FieldVectorgetValidityBufferAddress in interface FieldVectorpublic long getDataBufferAddress()
FieldVectorgetDataBufferAddress in interface FieldVectorpublic long getOffsetBufferAddress()
FieldVectorgetOffsetBufferAddress in interface FieldVectorpublic ArrowBuf getValidityBuffer()
ValueVectorgetValidityBuffer in interface ValueVectorgetValidityBuffer in class MapVectorpublic ArrowBuf getDataBuffer()
ValueVectorgetDataBuffer in interface ValueVectorgetDataBuffer in class MapVectorpublic ArrowBuf getOffsetBuffer()
ValueVectorgetOffsetBuffer in interface ValueVectorgetOffsetBuffer in class MapVectorpublic NullableMapVector.Accessor getAccessor()
getAccessor in interface ValueVectorgetAccessor in class MapVectoraccessor that is used to read from this vector
instance.public NullableMapVector.Mutator getMutator()
getMutator in interface ValueVectorgetMutator in class MapVectormutator that is used to write to this vector
instance.Copyright © 2017 The Apache Software Foundation. All rights reserved.