public class BasicInt128Vector extends AbstractVector
AbstractVector.NumElementAndPartial, AbstractVector.OffectEntity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected int |
capaticy |
protected int |
size |
protected Long2[] |
values |
compressedMethodCOMPRESS_DELTA, COMPRESS_LZ4, DISPLAY_ROWS| Modifier | Constructor and Description |
|---|---|
protected |
BasicInt128Vector(Entity.DATA_FORM df,
ExtendedDataInput in) |
protected |
BasicInt128Vector(Entity.DATA_FORM df,
int size) |
|
BasicInt128Vector(int size) |
|
BasicInt128Vector(List<Long2> list) |
|
BasicInt128Vector(Long2[] array) |
protected |
BasicInt128Vector(Long2[] array,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Long2 value) |
void |
addRange(Long2[] valueList) |
void |
Append(Scalar value) |
void |
Append(Vector value) |
int |
asof(Scalar value) |
Vector |
combine(Vector vector) |
void |
deserialize(int start,
int count,
ExtendedDataInput in) |
Entity |
get(int index) |
Long2[] |
getdataArray() |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_TYPE |
getDataType() |
Class<?> |
getElementClass() |
protected Long2[] |
getSubArray(int[] indices) |
Vector |
getSubVector(int[] indices) |
int |
getUnitLength() |
int |
hashBucket(int index,
int buckets) |
boolean |
isNull(int index) |
int |
rows() |
void |
serialize(int start,
int count,
ExtendedDataOutput out) |
int |
serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out) |
void |
set(int index,
Entity value) |
void |
setInt128(int index,
long highValue,
long lowValue) |
void |
setNull(int index) |
ByteBuffer |
writeVectorToBuffer(ByteBuffer buffer) |
protected void |
writeVectorToOutputStream(ExtendedDataOutput out) |
checkCompressedMethod, columns, getDataForm, getExtraParamForType, getJsonString, getString, getString, getUnitLength, setCompressedMethod, setExtraParamForType, write, writeCompressedgetDataCategory, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, typeToCategoryprotected Long2[] values
protected int size
protected int capaticy
public BasicInt128Vector(int size)
public BasicInt128Vector(Long2[] array)
protected BasicInt128Vector(Long2[] array, boolean copy)
protected BasicInt128Vector(Entity.DATA_FORM df, int size)
protected BasicInt128Vector(Entity.DATA_FORM df, ExtendedDataInput in) throws IOException
IOExceptionpublic void deserialize(int start,
int count,
ExtendedDataInput in)
throws IOException
deserialize in interface Vectordeserialize in class AbstractVectorIOExceptionpublic void serialize(int start,
int count,
ExtendedDataOutput out)
throws IOException
IOExceptionpublic Entity get(int index)
public Vector getSubVector(int[] indices)
protected Long2[] getSubArray(int[] indices)
public void setInt128(int index,
long highValue,
long lowValue)
public int hashBucket(int index,
int buckets)
hashBucket in interface VectorhashBucket in class AbstractVectorpublic int getUnitLength()
getUnitLength in interface VectorgetUnitLength in class AbstractVectorpublic void add(Long2 value)
public void addRange(Long2[] valueList)
public void Append(Scalar value) throws Exception
Append in interface VectorAppend in class AbstractVectorExceptionpublic void Append(Vector value) throws Exception
Append in interface VectorAppend in class AbstractVectorExceptionpublic Long2[] getdataArray()
public boolean isNull(int index)
public void setNull(int index)
public Entity.DATA_CATEGORY getDataCategory()
public Entity.DATA_TYPE getDataType()
public Class<?> getElementClass()
public int rows()
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
writeVectorToOutputStream in class AbstractVectorIOExceptionpublic int asof(Scalar value)
public ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
writeVectorToBuffer in class AbstractVectorIOExceptionpublic int serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out)
throws IOException
serialize in interface Vectorserialize in class AbstractVectorIOExceptionCopyright © 2023 DolphinDB. All rights reserved.