All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xxdb.data.BasicIPAddrVector Maven / Gradle / Ivy

Go to download

The messaging and data conversion protocol between Java and DolphinDB server

There is a newer version: 1.0.27
Show newest version
package com.xxdb.data;

import java.io.IOException;
import java.util.List;

import com.xxdb.io.ExtendedDataInput;
import com.xxdb.io.Long2;

public class BasicIPAddrVector extends BasicInt128Vector {
	
	public BasicIPAddrVector(int size){
		super(size);
	}
	
	public BasicIPAddrVector(List list){
		super(list);
	}
	
	public BasicIPAddrVector(Long2[] array){
		super(array);
	}
	
	protected BasicIPAddrVector(DATA_FORM df, int size){
		super(df, size);
	}
	
	protected BasicIPAddrVector(DATA_FORM df, ExtendedDataInput in) throws IOException{
		super(df, in);
	}
	
	public Scalar get(int index){
		return new BasicIPAddr(values[index].high, values[index].low);
	}
	
	@Override
	public DATA_TYPE getDataType() {
		return Entity.DATA_TYPE.DT_IPADDR;
	}
	
	@Override
	public Class getElementClass(){
		return BasicIPAddr.class;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy