public class UInt8Vector extends BaseFixedWidthVector
field, validityAllocationSizeInBytes, validityBuffer, valueAllocationSizeInBytes, valueBuffer, valueCount
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
Constructor and Description |
---|
UInt8Vector(String name,
BufferAllocator allocator) |
UInt8Vector(String name,
FieldType fieldType,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(int fromIndex,
int thisIndex,
UInt8Vector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
UInt8Vector from) |
long |
get(int index)
Get the element at the given index from the vector.
|
void |
get(int index,
NullableUInt8Holder holder)
Get the element at the given index from the vector and
sets the state in holder.
|
Types.MinorType |
getMinorType() |
Long |
getObject(int index)
Same as
get(int) . |
FieldReader |
getReader() |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator)
*
vector transfer *
*
|
TransferPair |
makeTransferPair(ValueVector to)
makes a new transfer pair used to transfer underlying buffers
|
void |
set(int index,
int isSet,
long value) |
void |
set(int index,
long value)
Set the element at the given index to the given value.
|
void |
set(int index,
NullableUInt8Holder holder)
Set the element at the given index to the value set in data holder.
|
void |
set(int index,
UInt8Holder holder)
Set the element at the given index to the value set in data holder.
|
void |
setNull(int index)
Set the element at the given index to null.
|
void |
setSafe(int index,
int isSet,
long value) |
void |
setSafe(int index,
long value)
Same as
set(int, long) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
void |
setSafe(int index,
NullableUInt8Holder holder)
Same as
set(int, NullableUInt8Holder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
void |
setSafe(int index,
UInt8Holder holder)
Same as
set(int, UInt8Holder) except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity() . |
allocateNew, allocateNew, allocateNewSafe, clear, close, decrementAllocationMonitor, getBuffers, getBufferSize, getBufferSizeFor, getChildrenFromFields, getDataBuffer, getDataBufferAddress, getField, getFieldBuffers, getFieldInnerVectors, getNullCount, getOffsetBuffer, getOffsetBufferAddress, getTransferPair, getTransferPair, getValidityBuffer, getValidityBufferAddress, getValueCapacity, getValueCount, handleSafe, incrementAllocationMonitor, initializeChildrenFromFields, isNull, isSafe, isSet, loadFieldBuffers, reAlloc, reset, set, set, setIndexDefined, setInitialCapacity, setSafe, setSafe, setValueCount, splitAndTransferTo, transferTo, zeroVector
checkBufRefs, compareTypes, getAllocator, getValidityBufferSizeFromCount, iterator, releaseBuffer, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator
public UInt8Vector(String name, BufferAllocator allocator)
public UInt8Vector(String name, FieldType fieldType, BufferAllocator allocator)
public FieldReader getReader()
field reader
that supports reading values
from this vector.public Types.MinorType getMinorType()
public long get(int index) throws IllegalStateException
index
- position of elementIllegalStateException
public void get(int index, NullableUInt8Holder holder)
index
- position of elementpublic Long getObject(int index)
get(int)
.index
- position of elementpublic void copyFrom(int fromIndex, int thisIndex, UInt8Vector from)
public void copyFromSafe(int fromIndex, int thisIndex, UInt8Vector from)
public void set(int index, long value)
index
- position of elementvalue
- value of elementpublic void set(int index, NullableUInt8Holder holder) throws IllegalArgumentException
index
- position of elementholder
- nullable data holder for value of elementIllegalArgumentException
public void set(int index, UInt8Holder holder)
index
- position of elementholder
- data holder for value of elementpublic void setSafe(int index, long value)
set(int, long)
except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity()
.index
- position of elementvalue
- value of elementpublic void setSafe(int index, NullableUInt8Holder holder) throws IllegalArgumentException
set(int, NullableUInt8Holder)
except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity()
.index
- position of elementholder
- nullable data holder for value of elementIllegalArgumentException
public void setSafe(int index, UInt8Holder holder)
set(int, UInt8Holder)
except that it handles the
case when index is greater than or equal to existing
value capacity BaseFixedWidthVector.getValueCapacity()
.index
- position of elementholder
- data holder for value of elementpublic void setNull(int index)
index
- position of elementpublic void set(int index, int isSet, long value)
public void setSafe(int index, int isSet, long value)
public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
getTransferPair
in class BaseFixedWidthVector
ref
- name of the target vectorallocator
- allocator for the target vectorpublic TransferPair makeTransferPair(ValueVector to)
ValueVector
to
- the target for the transfertransfer pair
that is used to transfer underlying
buffers into the target vector.Copyright © 2017 The Apache Software Foundation. All rights reserved.