redis.clients.jedis.graph.GraphProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.graph;
import redis.clients.jedis.args.Rawable;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;
@Deprecated
public class GraphProtocol {
@Deprecated
public enum GraphCommand implements ProtocolCommand {
QUERY,
RO_QUERY,
DELETE,
LIST,
PROFILE,
EXPLAIN,
SLOWLOG,
CONFIG;
private final byte[] raw;
private GraphCommand() {
raw = SafeEncoder.encode("GRAPH." + name());
}
@Override
public byte[] getRaw() {
return raw;
}
}
@Deprecated
public enum GraphKeyword implements Rawable {
CYPHER,
TIMEOUT,
SET,
GET,
__COMPACT("--COMPACT");
private final byte[] raw;
private GraphKeyword() {
raw = SafeEncoder.encode(name());
}
private GraphKeyword(String alt) {
raw = SafeEncoder.encode(alt);
}
@Override
public byte[] getRaw() {
return raw;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy