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 |
allocator, callBack, name| Constructor and Description |
|---|
NullableMapVector(String name,
BufferAllocator allocator,
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.
|
NullableMapVector.Accessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize()
Returns the number of bytes that is used by this vector instance.
|
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors() |
NullableMapVector.Mutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
FieldReader |
getReader()
Returns a
field reader that supports reading values
from this vector. |
TransferPair |
getTransferPair(BufferAllocator allocator)
Returns a
transfer pair, creating a new target vector of
the same type. |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector to)
Returns a new
transfer pair that is used to transfer underlying
buffers into the target vector. |
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
copyFromSafe, fieldNameIterator, getChildrenFromFields, getField, getMinorType, getVectorById, initializeChildrenFromFields, supportsDirectReadadd, addOrGet, getChild, getChildByOrdinal, getChildFieldNames, getChildren, getChildVectorWithOrdinal, getPrimitiveVectors, iterator, putChild, putVector, sizeallocateNew, getAllocator, getChild, typeifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrenFromFields, initializeChildrenFromFieldsallocateNew, getAllocator, getField, getMinorTypeprotected final BitVector bits
public NullableMapVector(String name, BufferAllocator allocator, CallBack callBack)
public 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 FieldReader getReader()
ValueVectorfield reader that supports reading values
from this vector.getReader in interface ValueVectorgetReader in class MapVectorpublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectortransfer pair, creating a new target vector of
the same type.getTransferPair in interface ValueVectorgetTransferPair in class MapVectorpublic TransferPair makeTransferPair(ValueVector to)
ValueVectortransfer pair that is used to transfer underlying
buffers into the target vector.makeTransferPair in interface ValueVectormakeTransferPair in class MapVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator)
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()
ValueVectorgetBufferSize 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 NullableMapVector.Accessor getAccessor()
ValueVectoraccessor that is used to read from this vector
instance.getAccessor in interface ValueVectorgetAccessor in class MapVectorpublic NullableMapVector.Mutator getMutator()
ValueVectormutator that is used to write to this vector
instance.getMutator in interface ValueVectorgetMutator in class MapVectorCopyright © 2016 The Apache Software Foundation. All rights reserved.