public abstract class BaseValueVector extends Object implements ValueVector
Modifier and Type | Field and Description |
---|---|
protected BufferAllocator |
allocator |
static int |
INITIAL_VALUE_ALLOCATION |
static int |
MAX_ALLOCATION_SIZE |
static String |
MAX_ALLOCATION_SIZE_PROPERTY |
protected String |
name |
Modifier | Constructor and Description |
---|---|
protected |
BaseValueVector(String name,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.arrow.vector.BaseValueVector.DataAndValidityBuffers |
allocFixedDataAndValidityBufs(int valueCount,
int typeWidth) |
static boolean |
checkBufRefs(ValueVector vv) |
void |
clear()
Release any owned ArrowBuf and reset the ValueVector to the initial state.
|
void |
close()
Alternative to clear().
|
protected void |
compareTypes(BaseValueVector target,
String caller) |
protected long |
computeCombinedBufferSize(int valueCount,
int typeWidth) |
BufferAllocator |
getAllocator() |
TransferPair |
getTransferPair(BufferAllocator allocator)
To transfer quota responsibility.
|
protected static int |
getValidityBufferSizeFromCount(int valueCount) |
Iterator<ValueVector> |
iterator() |
protected ArrowBuf |
releaseBuffer(ArrowBuf buffer) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allocateNew, allocateNewSafe, getBuffers, getBufferSize, getBufferSizeFor, getDataBuffer, getField, getMinorType, getNullCount, getObject, getOffsetBuffer, getReader, getTransferPair, getTransferPair, getValidityBuffer, getValueCapacity, getValueCount, isNull, makeTransferPair, reAlloc, reset, setInitialCapacity, setValueCount
forEach, spliterator
public static final String MAX_ALLOCATION_SIZE_PROPERTY
public static final int MAX_ALLOCATION_SIZE
public static final int INITIAL_VALUE_ALLOCATION
protected final BufferAllocator allocator
protected final String name
protected BaseValueVector(String name, BufferAllocator allocator)
public void clear()
ValueVector
clear
in interface ValueVector
public void close()
ValueVector
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ValueVector
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
getTransferPair
in interface ValueVector
allocator
- the target allocatortransfer pair
, creating a new target vector of
the same type.public Iterator<ValueVector> iterator()
iterator
in interface Iterable<ValueVector>
public static boolean checkBufRefs(ValueVector vv)
public BufferAllocator getAllocator()
getAllocator
in interface ValueVector
protected void compareTypes(BaseValueVector target, String caller)
protected static int getValidityBufferSizeFromCount(int valueCount)
protected long computeCombinedBufferSize(int valueCount, int typeWidth)
protected org.apache.arrow.vector.BaseValueVector.DataAndValidityBuffers allocFixedDataAndValidityBufs(int valueCount, int typeWidth)
Copyright © 2019 The Apache Software Foundation. All rights reserved.