public class BaseVector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
bb
The underlying ByteBuffer to hold the data of the vector.
|
| Constructor and Description |
|---|
BaseVector() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
__element(int j)
Gets the element position in vector's ByteBuffer.
|
protected void |
__reset(int _vector,
int _element_size,
ByteBuffer _bb)
Re-init the internal state with an external buffer
ByteBuffer, an offset within and
element size. |
protected int |
__vector()
Get the start data of a vector.
|
int |
length()
Get the length of a vector.
|
void |
reset()
Resets the internal state with a null
ByteBuffer and a zero position. |
protected ByteBuffer bb
protected int __vector()
protected int __element(int j)
j - An `int` index of element into a vector.protected void __reset(int _vector,
int _element_size,
ByteBuffer _bb)
ByteBuffer, an offset within and
element size.
This method exists primarily to allow recycling vector instances without risking memory leaks
due to ByteBuffer references.public void reset()
ByteBuffer and a zero position.
This method exists primarily to allow recycling vector instances without risking memory leaks
due to ByteBuffer references. The instance will be unusable until it is assigned
again to a ByteBuffer.public int length()
Copyright © 2020. All rights reserved.