redis.clients.jedis.timeseries.TSMGetElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.timeseries;
import java.util.Map;
import redis.clients.jedis.util.KeyValue;
public class TSMGetElement extends KeyValue {
private final Map labels;
public TSMGetElement(String key, Map labels, TSElement value) {
super(key, value);
this.labels = labels;
}
public Map getLabels() {
return labels;
}
public TSElement getElement() {
return getValue();
}
@Override
public String toString() {
return new StringBuilder().append(getClass().getSimpleName())
.append("{key=").append(getKey())
.append(", labels=").append(labels)
.append(", element=").append(getElement())
.append('}').toString();
}
}