public abstract class AbstractVector extends AbstractEntity implements Vector
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected static int |
BUF_SIZE |
protected int |
compressedMethod |
COMPRESS_DELTA, COMPRESS_LZ4, DISPLAY_ROWS| Constructor and Description |
|---|
AbstractVector(Entity.DATA_FORM df) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns() |
void |
deserialize(int start,
int count,
ExtendedDataInput in) |
Entity.DATA_FORM |
getDataForm() |
String |
getString() |
String |
getString(int index) |
static int |
getUnitLength(Entity.DATA_TYPE type) |
int |
hashBucket(int index,
int buckets) |
void |
setCompressedMethod(int method) |
void |
write(ExtendedDataOutput out) |
void |
writeCompressed(ExtendedDataOutput output) |
protected ByteBuffer |
writeVectorToBuffer(ByteBuffer buffer) |
protected abstract void |
writeVectorToOutputStream(ExtendedDataOutput out) |
getDataCategory, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasof, combine, get, getElementClass, getSubVector, isNull, set, setNullgetDataCategory, getDataType, isChart, isChunk, isDictionary, isMatrix, isPair, isScalar, isTable, isVector, rows, typeToCategoryprotected static final int BUF_SIZE
protected byte[] buf
protected int compressedMethod
public AbstractVector(Entity.DATA_FORM df)
protected abstract void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
IOExceptionpublic 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 void write(ExtendedDataOutput out) throws IOException
write in interface EntityIOExceptionpublic void setCompressedMethod(int method)
protected ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
IOExceptionpublic static int getUnitLength(Entity.DATA_TYPE type)
public void writeCompressed(ExtendedDataOutput output) throws IOException
writeCompressed in interface EntityIOExceptionCopyright © 2021 DolphinDB. All rights reserved.