com.xxdb.data.BasicInt128Vector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-java Show documentation
Show all versions of api-java Show documentation
The messaging and data conversion protocol between Java and DolphinDB server
package com.xxdb.data;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.List;
import com.xxdb.io.ExtendedDataInput;
import com.xxdb.io.ExtendedDataOutput;
import com.xxdb.io.Long2;
public class BasicInt128Vector extends AbstractVector{
protected Long2[] values;
public BasicInt128Vector(int size){
this(DATA_FORM.DF_VECTOR, size);
}
public BasicInt128Vector(List list){
super(DATA_FORM.DF_VECTOR);
if (list != null) {
values = new Long2[list.size()];
for (int i=0; i getElementClass(){
return BasicInt128.class;
}
@Override
public int rows() {
return values.length;
}
protected void writeVectorToOutputStream(ExtendedDataOutput out) throws IOException{
out.writeLong2Array(values);
}
}