|  View source on GitHub | 
PulsarWriter
tfio.experimental.streaming.PulsarWriter(
    service_url, topic
)
| Args | |
|---|---|
| service_url | A tf.stringtensor containing the service url of pulsar broker.
For example: "pulsar://localhost:6650". | 
| topic | A tf.stringtensor containing the topic name. | 
Methods
flush
flush()
Flush the queued messages, it will wait async write operations completed.
write
write(
    value, key=''
)
Write a message to pulsar topic asynchronously
| Args | |
|---|---|
| value | A tf.stringtensor containing the value of message | 
| key | A tf.stringtensor containing the key of message, if it's an empty string, the message will have no key.
Default: "" |