public class BasicComplexVector extends AbstractVector
AbstractVector.NumElementAndPartial, AbstractVector.OffectEntity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.DURATION, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected Double2[] |
values |
buf, BUF_SIZE, compressedMethodCOMPRESS_DELTA, COMPRESS_LZ4, DISPLAY_ROWS| Modifier | Constructor and Description |
|---|---|
|
BasicComplexVector(Double2[] array) |
protected |
BasicComplexVector(Double2[] array,
boolean copy) |
protected |
BasicComplexVector(Entity.DATA_FORM df,
ExtendedDataInput in) |
protected |
BasicComplexVector(Entity.DATA_FORM df,
int size) |
|
BasicComplexVector(int size) |
|
BasicComplexVector(List<Double2> list) |
| 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() |
protected Double2[] |
getSubArray(int[] indices) |
Vector |
getSubVector(int[] indices) |
int |
getUnitLength() |
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,
Scalar value) |
void |
setComplex(int index,
double real,
double image) |
void |
setNull(int index) |
ByteBuffer |
writeVectorToBuffer(ByteBuffer buffer) |
protected void |
writeVectorToOutputStream(ExtendedDataOutput out) |
checkCompressedMethod, 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, typeToCategoryprotected Double2[] values
public BasicComplexVector(int size)
public BasicComplexVector(Double2[] array)
protected BasicComplexVector(Double2[] array, boolean copy)
protected BasicComplexVector(Entity.DATA_FORM df, int size)
protected BasicComplexVector(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 int getUnitLength()
getUnitLength in interface VectorgetUnitLength in class AbstractVectorpublic Scalar get(int index)
public Vector getSubVector(int[] indices)
protected Double2[] getSubArray(int[] indices)
public void setComplex(int index,
double real,
double image)
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 Class<?> getElementClass()
public int rows()
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
writeVectorToOutputStream in class AbstractVectorIOExceptionpublic int asof(Scalar value)
public ByteBuffer writeVectorToBuffer(ByteBuffer buffer) throws IOException
writeVectorToBuffer in class AbstractVectorIOExceptionpublic int serialize(int indexStart,
int offect,
int targetNumElement,
AbstractVector.NumElementAndPartial numElementAndPartial,
ByteBuffer out)
throws IOException
serialize in interface Vectorserialize in class AbstractVectorIOExceptionCopyright © 2022 DolphinDB. All rights reserved.