Last active
February 7, 2020 11:58
-
-
Save brachi-wernick/6156314ddf07907d35433b530db3560e to your computer and use it in GitHub Desktop.
MyFn with using factory option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyFn extends DoFn<String, String> { | |
@ProcessElement | |
public void processElement(ProcessContext context,PipelineOptions options) { | |
RedisOptions redisOptions = options.as(RedisOptions.class); | |
RedissonClient redissonClient = redisOptions.getRedissonClient(); | |
//some logic enrichment | |
redis.get() | |
// output | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment