Enum FunctionResult

java.lang.Object
java.lang.Enum<FunctionResult>
org.redisson.api.FunctionResult
All Implemented Interfaces:
Serializable, Comparable<FunctionResult>, java.lang.constant.Constable

public enum FunctionResult extends Enum<FunctionResult>
Function result type.
Author:
Nikita Koksharov
  • Enum Constant Details

    • BOOLEAN

      public static final FunctionResult BOOLEAN
      Result is a value of Boolean type
    • LONG

      public static final FunctionResult LONG
      Result is a value of Long type
    • LIST

      public static final FunctionResult LIST
      Result is a value of List type
    • STRING

      public static final FunctionResult STRING
      Result is a value of plain String type
    • VALUE

      public static final FunctionResult VALUE
      Result is a value of user defined type
    • MAPVALUE

      public static final FunctionResult MAPVALUE
      Result is a value of Map Value type. Codec.getMapValueDecoder() and Codec.getMapValueEncoder() methods are used for data deserialization or serialization.
    • MAPVALUELIST

      public static final FunctionResult MAPVALUELIST
      Result is a value of List type, which consists of objects of Map Value type. Codec.getMapValueDecoder() and Codec.getMapValueEncoder() methods are used for data deserialization or serialization.
  • Method Details

    • values

      public static FunctionResult[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FunctionResult valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCommand

      public RedisCommand<?> getCommand()