类 RedisSink
java.lang.Object
org.apache.pulsar.io.redis.sink.RedisSink
- 所有已实现的接口:
AutoCloseable,org.apache.pulsar.io.core.Sink<byte[]>
A Simple Redis sink, which stores the key/value records from Pulsar in redis.
Note that records from Pulsar with null keys or values will be ignored.
This class expects records from Pulsar to have a key and value that are stored as bytes or a string.
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
RedisSink
public RedisSink()
-
-
方法详细资料
-
open
public void open(Map<String, Object> config, org.apache.pulsar.io.core.SinkContext sinkContext) throws Exception- 指定者:
open在接口中org.apache.pulsar.io.core.Sink<byte[]>- 抛出:
Exception
-
write
- 指定者:
write在接口中org.apache.pulsar.io.core.Sink<byte[]>- 抛出:
Exception
-
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-