public class MapVector extends AbstractMapVector
| Modifier and Type | Class and Description |
|---|---|
class |
MapVector.Accessor |
protected static class |
MapVector.MapTransferPair |
class |
MapVector.Mutator |
allocator, callBack, name| Constructor and Description |
|---|
MapVector(String name,
BufferAllocator allocator,
CallBack callBack) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Release the underlying ArrowBuf and reset the ValueVector to empty.
|
void |
close()
Clears out all underlying child vectors.
|
void |
copyFromSafe(int fromIndex,
int thisIndex,
MapVector from) |
Iterator<String> |
fieldNameIterator() |
MapVector.Accessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
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<FieldVector> |
getChildrenFromFields() |
Field |
getField()
Get information about how this field is materialized.
|
Types.MinorType |
getMinorType() |
MapVector.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.
|
ValueVector |
getVectorById(int id) |
void |
initializeChildrenFromFields(List<Field> children) |
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
|
protected boolean |
supportsDirectRead() |
add, addOrGet, allocateNewSafe, getBuffers, getChild, getChildByOrdinal, getChildFieldNames, getChildren, getChildVectorWithOrdinal, getPrimitiveVectors, iterator, putChild, putVector, sizeallocateNew, getAllocator, getChild, typeifypublic MapVector(String name, BufferAllocator allocator, CallBack callBack)
public FieldReader getReader()
ValueVectorfield reader that supports reading values
from this vector.public void copyFromSafe(int fromIndex,
int thisIndex,
MapVector from)
protected boolean supportsDirectRead()
supportsDirectRead in class AbstractContainerVectorpublic void setInitialCapacity(int numRecords)
ValueVectornumRecords - the initial record capacity.public int getBufferSize()
ValueVectorgetBufferSize in interface ValueVectorgetBufferSize in class AbstractMapVectorpublic int getBufferSizeFor(int valueCount)
ValueVectorvalueCount - the number of values to assume this vector containspublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVectortransfer pair, creating a new target vector of
the same type.public TransferPair makeTransferPair(ValueVector to)
ValueVectortransfer pair that is used to transfer underlying
buffers into the target vector.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
public int getValueCapacity()
ValueVectorpublic MapVector.Accessor getAccessor()
ValueVectoraccessor that is used to read from this vector
instance.public MapVector.Mutator getMutator()
ValueVectormutator that is used to write to this vector
instance.public ValueVector getVectorById(int id)
public void clear()
ValueVectorpublic Field getField()
ValueVectorpublic Types.MinorType getMinorType()
public void close()
AbstractContainerVectorclose in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorclose in class AbstractMapVectorpublic List<FieldVector> getChildrenFromFields()
Copyright © 2016 The Apache Software Foundation. All rights reserved.