Enum CommandType
- java.lang.Object
-
- java.lang.Enum<CommandType>
-
- com.redislabs.lettusearch.impl.protocol.CommandType
-
- All Implemented Interfaces:
io.lettuce.core.protocol.ProtocolKeyword,java.io.Serializable,java.lang.Comparable<CommandType>
public enum CommandType extends java.lang.Enum<CommandType> implements io.lettuce.core.protocol.ProtocolKeyword
RediSearch commands.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]bytes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()static CommandTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final CommandType ADD
-
AGGREGATE
public static final CommandType AGGREGATE
-
ALTER
public static final CommandType ALTER
-
CREATE
public static final CommandType CREATE
-
CURSOR
public static final CommandType CURSOR
-
DEL
public static final CommandType DEL
-
DROP
public static final CommandType DROP
-
DROPINDEX
public static final CommandType DROPINDEX
-
GET
public static final CommandType GET
-
MGET
public static final CommandType MGET
-
INFO
public static final CommandType INFO
-
SEARCH
public static final CommandType SEARCH
-
SUGADD
public static final CommandType SUGADD
-
SUGGET
public static final CommandType SUGGET
-
SUGDEL
public static final CommandType SUGDEL
-
SUGLEN
public static final CommandType SUGLEN
-
ALIASADD
public static final CommandType ALIASADD
-
ALIASUPDATE
public static final CommandType ALIASUPDATE
-
ALIASDEL
public static final CommandType ALIASDEL
-
_LIST
public static final CommandType _LIST
-
-
Method Detail
-
values
public static CommandType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandType c : CommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin interfaceio.lettuce.core.protocol.ProtocolKeyword
-
-