[
https://issues.apache.org/jira/browse/BEAM-8218?focusedWorklogId=718843&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-718843
]
ASF GitHub Bot logged work on BEAM-8218:
----------------------------------------
Author: ASF GitHub Bot
Created on: 01/Feb/22 17:35
Start Date: 01/Feb/22 17:35
Worklog Time Spent: 10m
Work Description: MarcoRob commented on a change in pull request #16634:
URL: https://github.com/apache/beam/pull/16634#discussion_r796838454
##########
File path:
sdks/java/io/pulsar/src/main/java/org/apache/beam/sdk/io/pulsar/PulsarMessage.java
##########
@@ -0,0 +1,37 @@
+package org.apache.beam.sdk.io.pulsar;
+
+import com.google.common.annotations.VisibleForTesting;
+import org.apache.pulsar.client.api.Message;
+
+/**
+ * Class representing a Pulsar Message record. Each PulsarMessage contains a
single message basic message data
+ * and Message record to access directly.
+ */
+public class PulsarMessage {
+ private String topic;
+ private Long publishTimestamp;
+ private Object messageRecord;
Review comment:
The purpose of PulsarMessage is to handle a
[coder](https://beam.apache.org/documentation/programming-guide/#specifying-coders)
for the output in the beam pipeline (see PulsarMessageCoder). So at the
beginning I was delivering the Message as the output of the Pipeline, but you
need to specify a coder for every pipeline in beam, so I generate the wrapper
of the Message so you can set a custom coder for the message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 718843)
Time Spent: 8h 40m (was: 8.5h)
> Implement Apache PulsarIO
> -------------------------
>
> Key: BEAM-8218
> URL: https://issues.apache.org/jira/browse/BEAM-8218
> Project: Beam
> Issue Type: Task
> Components: io-ideas
> Reporter: Alex Van Boxel
> Assignee: Marco Robles
> Priority: P3
> Time Spent: 8h 40m
> Remaining Estimate: 0h
>
> Apache Pulsar is starting to gain popularity. Having a native Beam PulsarIO
> could be beneficial.
> [https://pulsar.apache.org/|https://pulsar.apache.org/en/]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)