public class BasicIntVector extends AbstractVector
Entity.DATA_CATEGORY, Entity.DATA_FORM, Entity.DATA_TYPE, Entity.PARTITION_TYPE| Modifier and Type | Field and Description |
|---|---|
protected int[] |
values |
buf, BUF_SIZEDISPLAY_ROWS| Modifier | Constructor and Description |
|---|---|
protected |
BasicIntVector(Entity.DATA_FORM df,
ExtendedDataInput in) |
protected |
BasicIntVector(Entity.DATA_FORM df,
int size) |
|
BasicIntVector(int size) |
|
BasicIntVector(int[] array) |
protected |
BasicIntVector(int[] array,
boolean copy) |
|
BasicIntVector(List<Integer> list) |
| 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() |
int |
getInt(int index) |
protected int[] |
getSubArray(int[] indices) |
Vector |
getSubVector(int[] indices) |
int |
hashBucket(int index,
int buckets) |
boolean |
isNull(int index) |
int |
rows() |
void |
set(int index,
Scalar value) |
void |
setInt(int index,
int value) |
void |
setNull(int index) |
protected void |
writeVectorToOutputStream(ExtendedDataOutput out) |
columns, getDataForm, getString, writegetDataCategory, 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 BasicIntVector(int size)
public BasicIntVector(int[] array)
protected BasicIntVector(int[] array,
boolean copy)
protected BasicIntVector(Entity.DATA_FORM df, int size)
protected BasicIntVector(Entity.DATA_FORM df, ExtendedDataInput in) throws IOException
IOExceptionpublic Scalar get(int index)
public Vector getSubVector(int[] indices)
protected int[] getSubArray(int[] indices)
public int getInt(int index)
public void setInt(int index,
int 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 int rows()
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException
writeVectorToOutputStream in class AbstractVectorIOExceptionpublic int asof(Scalar value)
Copyright © 2020 DolphinDB. All rights reserved.