public abstract class BaseDataValueVector extends BaseValueVector implements BufferBacked
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutatorValueVector.Accessor, ValueVector.Mutator| Modifier and Type | Field and Description |
|---|---|
protected ArrowBuf |
data |
protected static byte[] |
emptyByteArray |
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.
|
void |
close()
Alternative to clear().
|
ArrowBuf |
getBuffer() |
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.
|
void |
load(ArrowBuf data) |
static void |
load(List<BufferBacked> vectors,
List<ArrowBuf> buffers) |
void |
reset()
This method has a similar effect of allocateNew() without actually clearing and reallocating
the value vector.
|
ArrowBuf |
unLoad() |
static List<ArrowBuf> |
unload(List<BufferBacked> vectors) |
checkBufRefs, getAllocator, getTransferPair, iterator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallocateNew, allocateNewSafe, getAccessor, getBufferSizeFor, getField, getMinorType, getMutator, getReader, getTransferPair, getValueCapacity, makeTransferPair, setInitialCapacityprotected static final byte[] emptyByteArray
protected ArrowBuf data
public BaseDataValueVector(String name, BufferAllocator allocator)
public static void load(List<BufferBacked> vectors, List<ArrowBuf> buffers)
public static List<ArrowBuf> unload(List<BufferBacked> vectors)
public void clear()
ValueVectorclear in interface ValueVectorclear in class BaseValueVectorpublic void close()
ValueVectorclose in interface Closeableclose in interface AutoCloseableclose in interface ValueVectorclose in class BaseValueVectorpublic 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()
ValueVectorgetBufferSize in interface ValueVectorpublic ArrowBuf getBuffer()
public void load(ArrowBuf data)
load in interface BufferBackedpublic ArrowBuf unLoad()
unLoad in interface BufferBackedpublic void reset()
Copyright © 2016 The Apache Software Foundation. All rights reserved.