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

io.redisearch.client.AutoCompleter Maven / Gradle / Ivy

The newest version!
package io.redisearch.client;

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

/**
 * TODO: Abstract auto-complete commands
 */
public class AutoCompleter {

    public enum Command implements ProtocolCommand {
        SUGADD("FT.SUGADD"),
        SUGGET("FT.SUGGET"),
        SUGDEL("FT.SUGDEL"),
        SUGLEN("FT.SUGLEN");

        private final byte[] raw;

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy