public abstract class BaseDataValueVector extends BaseValueVector implements BufferBacked
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutator
ValueVector.Accessor, ValueVector.Mutator
Modifier and Type | Field and Description |
---|---|
protected ArrowBuf |
data |
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
Constructor and Description |
---|
BaseDataValueVector(String name,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Release the underlying ArrowBuf and reset the ValueVector to empty.
|
ArrowBuf |
getBuffer() |
ArrowBuf[] |
getBuffers(boolean clear)
Return the underlying buffers associated with this vector.
|
int |
getBufferSize() |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator,
CallBack callBack) |
void |
load(ArrowFieldNode fieldNode,
ArrowBuf data) |
static void |
load(ArrowFieldNode fieldNode,
List<BufferBacked> vectors,
List<ArrowBuf> buffers) |
void |
reset()
This method has a similar effect of allocateNew() without actually clearing and reallocating
the value vector.
|
static void |
truncateBufferBasedOnSize(List<ArrowBuf> buffers,
int bufferIndex,
int byteSize) |
ArrowBuf |
unLoad() |
static List<ArrowBuf> |
unload(List<BufferBacked> vectors) |
checkBufRefs, close, getAllocator, getTransferPair, iterator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allocateNew, allocateNewSafe, getAccessor, getBufferSizeFor, getField, getMinorType, getMutator, getReader, getTransferPair, getValueCapacity, makeTransferPair, reAlloc, setInitialCapacity
forEach, spliterator
protected ArrowBuf data
public BaseDataValueVector(String name, BufferAllocator allocator)
public static void load(ArrowFieldNode fieldNode, List<BufferBacked> vectors, List<ArrowBuf> buffers)
public static void truncateBufferBasedOnSize(List<ArrowBuf> buffers, int bufferIndex, int byteSize)
public static List<ArrowBuf> unload(List<BufferBacked> vectors)
public void clear()
ValueVector
clear
in interface ValueVector
clear
in class BaseValueVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair
in interface ValueVector
public ArrowBuf[] getBuffers(boolean clear)
ValueVector
getBuffers
in interface ValueVector
clear
- 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 int getBufferSize()
getBufferSize
in interface ValueVector
public ArrowBuf getBuffer()
public void load(ArrowFieldNode fieldNode, ArrowBuf data)
load
in interface BufferBacked
public ArrowBuf unLoad()
unLoad
in interface BufferBacked
public void reset()
Copyright © 2017 The Apache Software Foundation. All rights reserved.