public final class NullableTimeStampSecVector extends BaseDataValueVector implements FixedWidthVector, NullableVector, FieldVector
Modifier and Type | Class and Description |
---|---|
class |
NullableTimeStampSecVector.Accessor |
class |
NullableTimeStampSecVector.Mutator |
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutator
data, emptyByteArray
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
Constructor and Description |
---|
NullableTimeStampSecVector(String name,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
allocateNew()
Allocate new buffers.
|
void |
allocateNew(int valueCount)
Allocate a new memory space for this vector.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
clear()
Release the underlying ArrowBuf and reset the ValueVector to empty.
|
void |
close()
Alternative to clear().
|
void |
copyFrom(int fromIndex,
int thisIndex,
NullableTimeStampSecVector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
NullableTimeStampSecVector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
TimeStampSecVector from) |
NullableTimeStampSecVector.Accessor |
getAccessor()
Returns an
accessor that is used to read from this vector
instance. |
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.
|
int |
getBufferSizeFor(int valueCount)
Returns the number of bytes that is used by this vector if it holds the given number
of values.
|
List<FieldVector> |
getChildrenFromFields()
the returned list is the same size as the list passed to initializeChildrenFromFields
|
Field |
getField()
Get information about how this field is materialized.
|
List<ArrowBuf> |
getFieldBuffers()
(same size as getFieldVectors() since it is their content)
|
List<BufferBacked> |
getFieldInnerVectors() |
Types.MinorType |
getMinorType() |
NullableTimeStampSecVector.Mutator |
getMutator()
Returns an
mutator that is used to write to this vector
instance. |
FieldReader |
getReader()
Returns a
field reader that supports reading values
from this vector. |
TransferPair |
getTransferPair(BufferAllocator allocator)
Returns a
transfer pair , creating a new target vector of
the same type. |
TransferPair |
getTransferPair(String ref,
BufferAllocator allocator) |
BitVector |
getValidityVector() |
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
TimeStampSecVector |
getValuesVector() |
void |
initializeChildrenFromFields(List<Field> children)
Initializes the child vectors
to be later loaded with loadBuffers
|
void |
loadFieldBuffers(ArrowFieldNode fieldNode,
List<ArrowBuf> ownBuffers)
loads data in the vectors
(ownBuffers must be the same size as getFieldVectors())
|
TransferPair |
makeTransferPair(ValueVector to)
Returns a new
transfer pair that is used to transfer underlying
buffers into the target vector. |
void |
reset()
This method has a similar effect of allocateNew() without actually clearing and reallocating
the value vector.
|
void |
setInitialCapacity(int numRecords)
Set the initial record capacity
|
void |
splitAndTransferTo(int startIndex,
int length,
NullableTimeStampSecVector target) |
void |
transferTo(NullableTimeStampSecVector target) |
void |
zeroVector()
Zero out the underlying buffer backing this vector.
|
load, load, truncateBufferBasedOnSize, unLoad, unload
checkBufRefs, getAllocator, iterator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllocator
forEach, iterator, spliterator
public NullableTimeStampSecVector(String name, BufferAllocator allocator)
public BitVector getValidityVector()
getValidityVector
in interface NullableVector
public List<BufferBacked> getFieldInnerVectors()
getFieldInnerVectors
in interface FieldVector
public void initializeChildrenFromFields(List<Field> children)
FieldVector
initializeChildrenFromFields
in interface FieldVector
children
- the schemapublic List<FieldVector> getChildrenFromFields()
FieldVector
getChildrenFromFields
in interface FieldVector
public void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
FieldVector
loadFieldBuffers
in interface FieldVector
fieldNode
- the fieldNodeownBuffers
- the buffers for this Field (own buffers only, children not included)public List<ArrowBuf> getFieldBuffers()
FieldVector
getFieldBuffers
in interface FieldVector
public Field getField()
ValueVector
getField
in interface ValueVector
public Types.MinorType getMinorType()
getMinorType
in interface ValueVector
public FieldReader getReader()
ValueVector
field reader
that supports reading values
from this vector.getReader
in interface ValueVector
public int getValueCapacity()
ValueVector
getValueCapacity
in interface ValueVector
public ArrowBuf[] getBuffers(boolean clear)
ValueVector
getBuffers
in interface ValueVector
getBuffers
in class BaseDataValueVector
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 void close()
ValueVector
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ValueVector
close
in class BaseDataValueVector
public void clear()
ValueVector
clear
in interface ValueVector
clear
in class BaseDataValueVector
public int getBufferSize()
ValueVector
getBufferSize
in interface ValueVector
getBufferSize
in class BaseDataValueVector
public int getBufferSizeFor(int valueCount)
ValueVector
getBufferSizeFor
in interface ValueVector
valueCount
- the number of values to assume this vector containspublic ArrowBuf getBuffer()
getBuffer
in class BaseDataValueVector
public TimeStampSecVector getValuesVector()
getValuesVector
in interface NullableVector
public void setInitialCapacity(int numRecords)
ValueVector
setInitialCapacity
in interface ValueVector
numRecords
- the initial record capacity.public void allocateNew()
ValueVector
allocateNew
in interface ValueVector
public boolean allocateNewSafe()
ValueVector
allocateNewSafe
in interface ValueVector
public void allocateNew(int valueCount)
FixedWidthVector
allocateNew
in interface FixedWidthVector
valueCount
- Number of values in the vector.public void reset()
BaseDataValueVector
reset
in class BaseDataValueVector
public void zeroVector()
zeroVector
in interface FixedWidthVector
public TransferPair getTransferPair(BufferAllocator allocator)
ValueVector
transfer pair
, creating a new target vector of
the same type.getTransferPair
in interface ValueVector
getTransferPair
in class BaseValueVector
public TransferPair getTransferPair(String ref, BufferAllocator allocator)
getTransferPair
in interface ValueVector
public TransferPair makeTransferPair(ValueVector to)
ValueVector
transfer pair
that is used to transfer underlying
buffers into the target vector.makeTransferPair
in interface ValueVector
public void transferTo(NullableTimeStampSecVector target)
public void splitAndTransferTo(int startIndex, int length, NullableTimeStampSecVector target)
public NullableTimeStampSecVector.Accessor getAccessor()
ValueVector
accessor
that is used to read from this vector
instance.getAccessor
in interface ValueVector
public NullableTimeStampSecVector.Mutator getMutator()
ValueVector
mutator
that is used to write to this vector
instance.getMutator
in interface ValueVector
public void copyFrom(int fromIndex, int thisIndex, NullableTimeStampSecVector from)
public void copyFromSafe(int fromIndex, int thisIndex, TimeStampSecVector from)
public void copyFromSafe(int fromIndex, int thisIndex, NullableTimeStampSecVector from)
Copyright © 2017 The Apache Software Foundation. All rights reserved.