public class BasicShortVector extends AbstractVector
AbstractVector.NumElementAndPartial, AbstractVector.OffectEntity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPEcompressedMethod, GROWTH_FACTORCOMPRESS_DELTA, COMPRESS_LZ4, DISPLAY_ROWS| Modifier | Constructor and Description |
|---|---|
protected |
BasicShortVector(Entity.DATA_FORM df,
ExtendedDataInput in) |
protected |
BasicShortVector(Entity.DATA_FORM df,
int size) |
|
BasicShortVector(int size) |
|
BasicShortVector(int size,
int capacity) |
|
BasicShortVector(List<Short> list) |
|
BasicShortVector(short[] array) |
|
BasicShortVector(short[] array,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object value) |
void |
add(short value) |
void |
addRange(short[] valueList) |
void |
Append(Scalar value) |
void |
Append(Vector value) |
int |
asof(Scalar value) |
void |
checkCapacity(int requiredCapacity) |
Vector |
combine(Vector vector) |
void |
deserialize(int start,
int count,
ExtendedDataInput in) |
Entity |
get(int index) |
short[] |
getdataArray() |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_TYPE |
getDataType() |
Class<?> |
getElementClass() |
short |
getShort(int index) |
Vector |
getSubVector(int[] indices) |
int |
getUnitLength() |
short[] |
getValues() |
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 |
set(int index,
Object value) |
void |
setNull(int index) |
void |
setShort(int index,
short value) |
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, typeToCategorypublic BasicShortVector(int size)
public BasicShortVector(int size,
int capacity)
public BasicShortVector(short[] array)
public BasicShortVector(short[] array,
boolean copy)
protected BasicShortVector(Entity.DATA_FORM df, int size)
protected BasicShortVector(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 short getShort(int index)
public Entity get(int index)
public Vector getSubVector(int[] indices)
public void set(int index,
Object value)
public void setShort(int index,
short value)
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(Object value)
public void add(short value)
public void addRange(short[] 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 void checkCapacity(int requiredCapacity)
checkCapacity in class AbstractVectorpublic short[] getdataArray()
public boolean isNull(int index)
public void setNull(int index)
public Entity.DATA_CATEGORY getDataCategory()
public Entity.DATA_TYPE getDataType()
public int rows()
public Class<?> getElementClass()
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
writeVectorToOutputStream in class AbstractVectorIOExceptionpublic ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
writeVectorToBuffer in class AbstractVectorIOExceptionpublic int asof(Scalar value)
public int serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out)
throws IOException
serialize in interface Vectorserialize in class AbstractVectorIOExceptionpublic short[] getValues()
Copyright © 2026 DolphinDB. All rights reserved.