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 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 |
|---|---|
static boolean |
checkCompressedMethod(Entity.DATA_TYPE type,
int compressedMethod) |
int |
columns() |
void |
deserialize(int start,
int count,
ExtendedDataInput in) |
Entity.DATA_FORM |
getDataForm() |
String |
getString() |
String |
getString(int index) |
abstract int |
getUnitLength() |
static int |
getUnitLength(Entity.DATA_TYPE type) |
int |
hashBucket(int index,
int buckets) |
int |
serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out) |
void |
setCompressedMethod(int method) |
void |
write(ExtendedDataOutput out) |
void |
writeCompressed(ExtendedDataOutput output) |
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, serialize, 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 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 void write(ExtendedDataOutput out) throws IOException
write in interface EntityIOExceptionpublic abstract int getUnitLength()
getUnitLength in interface Vectorpublic 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 void writeCompressed(ExtendedDataOutput output) throws IOException
writeCompressed in interface EntityIOExceptionCopyright © 2022 DolphinDB. All rights reserved.