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

com.redislabs.redistimeseries.Aggregation Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
package com.redislabs.redistimeseries;

import redis.clients.jedis.util.SafeEncoder;

public enum Aggregation {
  AVG, SUM, MIN, MAX, RANGE, COUNT, FIRST, LAST, 
  STD_P("STD.P"), STD_S("STD.S"), VAR_P("VAR.P"), VAR_S("VAR.S");  
  
  private final byte[] raw;
  
  Aggregation(String alt) {
    raw = SafeEncoder.encode(alt);
  }
  
  Aggregation() {
    raw = SafeEncoder.encode(this.name());
  }

  public byte[] getRaw() {
    return raw;
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy