Enum KeyType

  • All Implemented Interfaces:
    Serializable, Comparable<KeyType>

    public enum KeyType
    extends Enum<KeyType>
    Defines the support key types that can be used to define the keys that comprise a Redis table in glue.
    • Enum Constant Detail

      • PREFIX

        public static final KeyType PREFIX
        Indicates that the KeyType is a prefix and so all Redis keys matching this prefix are in scope for the Table.
      • ZSET

        public static final KeyType ZSET
        Indicates that the KeyType is a zset and so all Keys that match the value with be zsets and as such we should take all the values in those keys and treat them as keys that are in scope for the Table. For example: my_key_list is a a key which points to a zset that contains: key1, key2, key3. So when I query this table. We lookup my_key_list and for each value (key1, key2, key3) in that zset we lookup the value. So our table contains the values stored at key1, key2, key3.
    • Method Detail

      • values

        public static KeyType[] 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 (KeyType c : KeyType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeyType 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
      • getId

        public String getId()