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

com.aliyun.tair.tairts.results.ExtsStringSkeyResult Maven / Gradle / Ivy

Go to download

Aliyun Tair Redis client for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 3.0.9
Show newest version
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