Enum Class RedisIO.Write.Method

java.lang.Object
java.lang.Enum<RedisIO.Write.Method>
org.apache.beam.sdk.io.redis.RedisIO.Write.Method
All Implemented Interfaces:
Serializable, Comparable<RedisIO.Write.Method>, Constable
Enclosing class:
RedisIO.Write

public static enum RedisIO.Write.Method extends Enum<RedisIO.Write.Method>
Determines the method used to insert data in Redis.
  • Enum Constant Details

    • APPEND

      public static final RedisIO.Write.Method APPEND
      Use APPEND command. If key already exists and is a string, this command appends the value at the end of the string.
    • SET

      public static final RedisIO.Write.Method SET
      Use SET command. If key already holds a value, it is overwritten.
    • LPUSH

      public static final RedisIO.Write.Method 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

      public static final RedisIO.Write.Method 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

      public static final RedisIO.Write.Method SADD
      Use SADD command. Insert value in a set. Duplicated values are ignored.
    • PFADD

      public static final RedisIO.Write.Method PFADD
      Use PFADD command. Insert value in a HLL structure. Create key if it doesn't exist
    • INCRBY

      public static final RedisIO.Write.Method INCRBY
      Use INCBY command. Increment counter value of a key by a given value.
    • DECRBY

      public static final RedisIO.Write.Method DECRBY
      Use DECRBY command. Decrement counter value of a key by given value.
  • Method Details

    • values

      public static RedisIO.Write.Method[] 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

      public static RedisIO.Write.Method valueOf(String name)
      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 name
      NullPointerException - if the argument is null