public class BasicShortVector extends AbstractVector
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPEbuf, BUF_SIZE, compressedMethodCOMPRESS_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(List<Short> list) |
|
BasicShortVector(short[] array) |
|
BasicShortVector(short[] array,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
int |
asof(Scalar value) |
Vector |
combine(Vector vector) |
void |
deserialize(int start,
int count,
ExtendedDataInput in) |
Scalar |
get(int index) |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_TYPE |
getDataType() |
Class<?> |
getElementClass() |
short |
getShort(int index) |
Vector |
getSubVector(int[] indices) |
int |
hashBucket(int index,
int buckets) |
boolean |
isNull(int index) |
int |
rows() |
void |
set(int index,
Scalar value) |
void |
setNull(int index) |
void |
setShort(int index,
short value) |
protected ByteBuffer |
writeVectorToBuffer(ByteBuffer buffer) |
protected void |
writeVectorToOutputStream(ExtendedDataOutput out) |
columns, getDataForm, getString, getString, getUnitLength, setCompressedMethod, 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(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 short getShort(int index)
public Scalar get(int index)
public Vector getSubVector(int[] indices)
public void setShort(int index,
short value)
public int hashBucket(int index,
int buckets)
hashBucket in interface VectorhashBucket in class AbstractVectorpublic 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 AbstractVectorIOExceptionprotected ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
writeVectorToBuffer in class AbstractVectorIOExceptionpublic int asof(Scalar value)
Copyright © 2021 DolphinDB. All rights reserved.