public abstract class AbstractVector extends AbstractEntity implements Vector
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractVector.NumElementAndPartial |
static class |
AbstractVector.Offect |
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected int |
compressedMethod |
protected static double |
GROWTH_FACTOR |
COMPRESS_DELTA, COMPRESS_LZ4, DISPLAY_ROWS| Constructor and Description |
|---|
AbstractVector(Entity.DATA_FORM df) |
getDataCategory, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasof, combine, get, getElementClass, getSubVector, isNull, serialize, set, setNullgetDataCategory, getDataType, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, rows, typeToCategoryprotected int compressedMethod
protected static final double GROWTH_FACTOR
public AbstractVector(Entity.DATA_FORM df)
protected abstract void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
IOExceptionpublic int serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out)
throws IOException
serialize in interface VectorIOExceptionpublic void deserialize(int start,
int count,
ExtendedDataInput in)
throws IOException
deserialize in interface VectorIOExceptionpublic Entity.DATA_FORM getDataForm()
getDataForm in interface EntitygetDataForm in class AbstractEntitypublic int hashBucket(int index,
int buckets)
hashBucket in interface Vectorpublic String getJsonString(int rowIndex)
getJsonString in interface Vectorpublic void write(ExtendedDataOutput out) throws IOException
write in interface EntityIOExceptionpublic abstract int getUnitLength()
getUnitLength in interface Vectorpublic abstract void checkCapacity(int requiredCapacity)
public static boolean checkCompressedMethod(Entity.DATA_TYPE type, int compressedMethod)
public void setCompressedMethod(int method)
public ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
IOExceptionpublic static int getUnitLength(Entity.DATA_TYPE type)
public int getExtraParamForType()
public void setExtraParamForType(int scale)
public void writeCompressed(ExtendedDataOutput output) throws IOException
writeCompressed in interface EntityIOExceptionCopyright © 2025 DolphinDB. All rights reserved.