public final class Float8Vector extends BaseDataValueVector implements FixedWidthVector
Modifier and Type | Class and Description |
---|---|
class |
Float8Vector.Accessor |
class |
Float8Vector.Mutator
Float8.Mutator implements a mutable vector of fixed width values.
|
BaseValueVector.BaseAccessor, BaseValueVector.BaseMutator
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_WIDTH |
data, emptyByteArray
allocator, INITIAL_VALUE_ALLOCATION, MAX_ALLOCATION_SIZE, MAX_ALLOCATION_SIZE_PROPERTY, name
Constructor and Description |
---|
Float8Vector(String name,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
allocateNew()
Allocate new buffers.
|
void |
allocateNew(int valueCount)
Allocate a new buffer that supports setting at least the provided number of values.
|
boolean |
allocateNewSafe()
Allocates new buffers.
|
void |
copyFrom(int fromIndex,
int thisIndex,
Float8Vector from) |
void |
copyFromSafe(int fromIndex,
int thisIndex,
Float8Vector from) |
void |
decrementAllocationMonitor() |
Float8Vector.Accessor |
getAccessor()
Returns an
accessor that is used to read from 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.
|
Field |
getField()
Get information about how this field is materialized.
|
Types.MinorType |
getMinorType() |
Float8Vector.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) |
int |
getValueCapacity()
Returns the maximum number of values that can be stored in this vector instance.
|
TransferPair |
makeTransferPair(ValueVector to)
Returns a new
transfer pair that is used to transfer underlying
buffers into the target vector. |
void |
reAlloc()
Allocate new buffer with double capacity, and copy data into the new buffer.
|
void |
reset()
This method has a similar effect of allocateNew() without actually clearing and reallocating
the value vector.
|
void |
setInitialCapacity(int valueCount)
Set the initial record capacity
|
void |
splitAndTransferTo(int startIndex,
int length,
Float8Vector target) |
void |
transferTo(Float8Vector target) |
void |
zeroVector()
Zero out the underlying buffer backing this vector.
|
clear, close, getBuffer, getBuffers, getBufferSize, load, load, truncateBufferBasedOnSize, unLoad, unload
checkBufRefs, getAllocator, iterator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, close, getAllocator, getBuffers, getBufferSize
forEach, iterator, spliterator
public static final int TYPE_WIDTH
public Float8Vector(String name, BufferAllocator allocator)
public Types.MinorType getMinorType()
getMinorType
in interface ValueVector
public Field getField()
ValueVector
getField
in interface ValueVector
public FieldReader getReader()
ValueVector
field reader
that supports reading values
from this vector.getReader
in interface ValueVector
public int getBufferSizeFor(int valueCount)
ValueVector
getBufferSizeFor
in interface ValueVector
valueCount
- the number of values to assume this vector containspublic int getValueCapacity()
ValueVector
getValueCapacity
in interface ValueVector
public Float8Vector.Accessor getAccessor()
ValueVector
accessor
that is used to read from this vector
instance.getAccessor
in interface ValueVector
public Float8Vector.Mutator getMutator()
ValueVector
mutator
that is used to write to this vector
instance.getMutator
in interface ValueVector
public void setInitialCapacity(int valueCount)
ValueVector
setInitialCapacity
in interface ValueVector
valueCount
- 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)
allocateNew
in interface FixedWidthVector
valueCount
- OutOfMemoryException
- if it can't allocate the new bufferpublic void reset()
BaseDataValueVector
reset
in class BaseDataValueVector
public void reAlloc()
OutOfMemoryException
- if it can't allocate the new bufferpublic 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(Float8Vector target)
public void splitAndTransferTo(int startIndex, int length, Float8Vector target)
public void copyFrom(int fromIndex, int thisIndex, Float8Vector from)
public void copyFromSafe(int fromIndex, int thisIndex, Float8Vector from)
public void decrementAllocationMonitor()
Copyright © 2017 The Apache Software Foundation. All rights reserved.