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

io.rebloom.client.TopKCommand Maven / Gradle / Ivy

package io.rebloom.client;

import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;

public enum TopKCommand implements ProtocolCommand {
    RESERVE("TOPK.RESERVE"),
    ADD("TOPK.ADD"),
    INCRBY("TOPK.INCRBY"),
    QUERY("TOPK.QUERY"),
    COUNT("TOPK.COUNT"),
    LIST("TOPK.LIST"),
    INFO("TOPK.INFO");

    private final byte[] raw;

    TopKCommand(String alt) {
        raw = SafeEncoder.encode(alt);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy