Package org.apache.beam.sdk.io.redis
Enum Class RedisIO.Write.Method
- All Implemented Interfaces:
Serializable
,Comparable<RedisIO.Write.Method>
,Constable
- Enclosing class:
RedisIO.Write
Determines the method used to insert data in Redis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisIO.Write.Method
Returns the enum constant of this class with the specified name.static RedisIO.Write.Method[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPEND
Use APPEND command. If key already exists and is a string, this command appends the value at the end of the string. -
SET
Use SET command. If key already holds a value, it is overwritten. -
LPUSH
Use LPUSH command. Insert value at the head of the list stored at key. If key does not exist, it is created as empty list before performing the push operations. When key holds a value that is not a list, an error is returned. -
RPUSH
Use RPUSH command. Insert value at the tail of the list stored at key. If key does not exist, it is created as empty list before performing the push operations. When key holds a value that is not a list, an error is returned. -
SADD
Use SADD command. Insert value in a set. Duplicated values are ignored. -
PFADD
Use PFADD command. Insert value in a HLL structure. Create key if it doesn't exist -
INCRBY
Use INCBY command. Increment counter value of a key by a given value. -
DECRBY
Use DECRBY command. Decrement counter value of a key by given value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-