public class BasicSymbolVector extends AbstractVector
AbstractVector.NumElementAndPartial, AbstractVector.OffectEntity.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 |
BasicSymbolVector(Entity.DATA_FORM df,
ExtendedDataInput in) |
protected |
BasicSymbolVector(Entity.DATA_FORM df,
ExtendedDataInput in,
SymbolBaseCollection collection) |
|
BasicSymbolVector(int size) |
|
BasicSymbolVector(List<String> list) |
|
BasicSymbolVector(SymbolBase base,
int size) |
|
BasicSymbolVector(SymbolBase base,
int[] values,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
int |
asof(Scalar value) |
Vector |
combine(Vector vector) |
Scalar |
get(int index) |
Entity.DATA_CATEGORY |
getDataCategory() |
Entity.DATA_TYPE |
getDataType() |
Class<?> |
getElementClass() |
String |
getString(int index) |
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 |
setNull(int index) |
void |
setString(int index,
String value) |
void |
write(ExtendedDataOutput out,
SymbolBaseCollection collection) |
protected void |
writeVectorToOutputStream(ExtendedDataOutput out) |
checkCompressedMethod, columns, deserialize, getDataForm, getString, getUnitLength, setCompressedMethod, write, writeCompressed, writeVectorToBuffergetDataCategory, 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 BasicSymbolVector(int size)
public BasicSymbolVector(SymbolBase base, int size)
public BasicSymbolVector(SymbolBase base, int[] values, boolean copy)
protected BasicSymbolVector(Entity.DATA_FORM df, ExtendedDataInput in) throws IOException
IOExceptionprotected BasicSymbolVector(Entity.DATA_FORM df, ExtendedDataInput in, SymbolBaseCollection collection) throws IOException
IOExceptionpublic Scalar get(int index)
public Vector getSubVector(int[] indices)
public String getString(int index)
getString in interface VectorgetString in class AbstractVectorpublic int getUnitLength()
getUnitLength in interface VectorgetUnitLength in class AbstractVectorpublic void setString(int index,
String 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 Class<?> getElementClass()
public void serialize(int start,
int count,
ExtendedDataOutput out)
throws IOException
IOExceptionpublic int rows()
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
writeVectorToOutputStream in class AbstractVectorIOExceptionpublic void write(ExtendedDataOutput out, SymbolBaseCollection collection) throws IOException
IOExceptionpublic int asof(Scalar value)
public 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.