com.aliyun.tair.tairts.results.ExtsStringSkeyResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-tairjedis-sdk Show documentation
Show all versions of alibabacloud-tairjedis-sdk Show documentation
Aliyun Tair Redis client for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
package com.aliyun.tair.tairts.results;
import java.util.ArrayList;
import java.util.List;
public class ExtsStringSkeyResult {
private String skey;
private ArrayList labels = new ArrayList();
private ArrayList dataPoints = new ArrayList();
private long token;
public ExtsStringSkeyResult(String skey, List labels, List dataPoints, long token) {
this.skey = skey;
this.token = token;
int labelsNum = labels.size();
for (int i = 0; i < labelsNum; i++) {
List subl = (List) labels.get(i);
this.labels.add(new ExtsLabelResult(new String((byte[]) subl.get(0)), new String((byte[]) subl.get(1))));
}
int dataPointsNum = dataPoints.size();
for (int i = 0; i < dataPointsNum; i++) {
List subl = (List) dataPoints.get(i);
this.dataPoints.add(new ExtsStringDataPointResult(((Number) subl.get(0)).longValue(), new String((byte[]) subl.get(1))));
}
}
public String getSkey() {
return skey;
}
public void setSkey(String skey) {
this.skey = skey;
}
public ArrayList getLabels() {
return labels;
}
public ArrayList getDataPoints() {
return dataPoints;
}
public long getToken() {
return token;
}
public void setToken(long token) {
this.token = token;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy