public class MapVector extends AbstractMapVector
Modifier and Type | Class and Description |
---|---|
class |
MapVector.Accessor |
protected static class |
MapVector.MapTransferPair |
class |
MapVector.Mutator |
Modifier and Type | Field and Description |
---|---|
protected FieldType |
fieldType |
int |
valueCount |
allocator, callBack, name
Constructor and Description |
---|
MapVector(String name,
BufferAllocator allocator,
CallBack callBack)
Deprecated.
|
MapVector(String name,
BufferAllocator allocator,
FieldType fieldType,
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) |
static MapVector |
empty(String name,
BufferAllocator allocator) |
Iterator<String> |
fieldNameIterator() |
MapVector.Accessor |
getAccessor() |
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.
|
List<FieldVector> |
getChildrenFromFields() |
Field |
getField()
Get information about how this field is materialized.
|
Types.MinorType |
getMinorType() |
MapVector.Mutator |
getMutator() |
FieldReader |
getReader() |
TransferPair |
getTransferPair(BufferAllocator allocator)
to transfer quota responsibility
|
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
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)
makes a new transfer pair used to transfer underlying buffers
|
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, reAlloc, size
addOrGetList, addOrGetMap, addOrGetUnion, allocateNew, getAllocator, getChild, typeify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected final FieldType fieldType
public int valueCount
@Deprecated public MapVector(String name, BufferAllocator allocator, CallBack callBack)
public MapVector(String name, BufferAllocator allocator, FieldType fieldType, CallBack callBack)
public static MapVector empty(String name, BufferAllocator allocator)
public FieldReader getReader()
field reader
that supports reading values
from this vector.public void copyFromSafe(int fromIndex, int thisIndex, MapVector from)
protected boolean supportsDirectRead()
supportsDirectRead
in class AbstractContainerVector
public void setInitialCapacity(int numRecords)
ValueVector
numRecords
- the initial record capacity.public int getBufferSize()
getBufferSize
in interface ValueVector
getBufferSize
in class AbstractMapVector
public int getBufferSizeFor(int valueCount)
ValueVector
valueCount
- the number of values to assume this vector containspublic TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
allocator
- the target allocatortransfer pair
, creating a new target vector of
the same type.public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
public TransferPair makeTransferPair(ValueVector to)
ValueVector
to
- the target for the transfertransfer pair
that is used to transfer underlying
buffers into the target vector.public TransferPair getTransferPair(String ref, BufferAllocator allocator)
public int getValueCapacity()
ValueVector
public MapVector.Accessor getAccessor()
accessor
that is used to read from this vector
instance.public MapVector.Mutator getMutator()
mutator
that is used to write to this vector
instance.public ValueVector getVectorById(int id)
public void clear()
ValueVector
public Field getField()
ValueVector
public Types.MinorType getMinorType()
public void close()
AbstractContainerVector
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ValueVector
close
in class AbstractMapVector
public List<FieldVector> getChildrenFromFields()
Copyright © 2017 The Apache Software Foundation. All rights reserved.