Class RedisIO.ReadKeyPatterns

All Implemented Interfaces:
Serializable, HasDisplayData
Enclosing class:
RedisIO

public abstract static class RedisIO.ReadKeyPatterns extends PTransform<PCollection<String>,PCollection<KV<String,String>>>
Implementation of RedisIO.readKeyPatterns().
See Also:
  • Constructor Details

    • ReadKeyPatterns

      public ReadKeyPatterns()
  • Method Details

    • withEndpoint

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

      public RedisIO.ReadKeyPatterns withAuth(String auth)
    • withTimeout

      public RedisIO.ReadKeyPatterns withTimeout(int timeout)
    • withConnectionConfiguration

      public RedisIO.ReadKeyPatterns withConnectionConfiguration(RedisConnectionConfiguration connection)
    • withBatchSize

      public RedisIO.ReadKeyPatterns withBatchSize(int batchSize)
    • withOutputParallelization

      public RedisIO.ReadKeyPatterns withOutputParallelization(boolean outputParallelization)
      Whether to reshuffle the resulting PCollection so results are distributed to all workers. The default is to parallelize and should only be changed if this is known to be unnecessary.
    • expand

      public PCollection<KV<String,String>> expand(PCollection<String> 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<String>,PCollection<KV<String,String>>>