public abstract class BaseDataValueVector extends BaseValueVector implements BufferBacked
| 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, compareTypes, getAllocator, getTransferPair, getValidityBufferSizeFromCount, iterator, releaseBuffer, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallocateNew, allocateNewSafe, getBufferSizeFor, getDataBuffer, getField, getMinorType, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, isNull, makeTransferPair, reAlloc, setInitialCapacity, setValueCountprotected 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()
ValueVectorclear in interface ValueVectorclear in class BaseValueVectorpublic TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack)
getTransferPair in interface ValueVectorpublic ArrowBuf[] getBuffers(boolean clear)
ValueVectorgetBuffers in interface ValueVectorclear - 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 ValueVectorpublic ArrowBuf getBuffer()
public void load(ArrowFieldNode fieldNode, ArrowBuf data)
load in interface BufferBackedpublic ArrowBuf unLoad()
unLoad in interface BufferBackedpublic void reset()
Copyright © 2017 The Apache Software Foundation. All rights reserved.