Class RedisIO.WriteBytes

java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<KV<byte[],byte[]>>,PDone>
org.apache.beam.sdk.io.redis.RedisIO.WriteBytes
All Implemented Interfaces:
Serializable, HasDisplayData
Enclosing class:
RedisIO

public abstract static class RedisIO.WriteBytes extends PTransform<PCollection<KV<byte[],byte[]>>,PDone>
A PTransform to write to a Redis server.
See Also:
  • Constructor Details

    • WriteBytes

      public WriteBytes()
  • Method Details

    • withEndpoint

      public RedisIO.WriteBytes withEndpoint(String host, int port)
    • withAuth

      public RedisIO.WriteBytes withAuth(String auth)
    • withTimeout

      public RedisIO.WriteBytes withTimeout(int timeout)
    • withConnectionConfiguration

      public RedisIO.WriteBytes withConnectionConfiguration(RedisConnectionConfiguration connection)
    • withMethod

      public RedisIO.WriteBytes withMethod(RedisIO.Write.Method method)
    • withExpireTime

      public RedisIO.WriteBytes withExpireTime(Long expireTimeMillis)
    • expand

      public PDone expand(PCollection<KV<byte[],byte[]>> input)
      Description copied from class: PTransform
      Override this method to specify how this PTransform should be expanded on the given InputT.

      NOTE: This method should not be called directly. Instead apply the PTransform should be applied to the InputT using the apply method.

      Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).

      Specified by:
      expand in class PTransform<PCollection<KV<byte[],byte[]>>,PDone>