merlimat commented on a change in pull request #2187:  Removed the 
`Context.ack(byte[] messageId)` and expose `Record` instead 
URL: https://github.com/apache/incubator-pulsar/pull/2187#discussion_r203207753
 
 

 ##########
 File path: pulsar-io/kinesis/pom.xml
 ##########
 @@ -38,6 +38,13 @@
       <version>${project.version}</version>
     </dependency>
 
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>pulsar-functions-instance</artifactId>
+      <version>${project.version}</version>
+      <scope>provided</scope>
 
 Review comment:
   I have moved `EncryptionContext` out of `Record` (main reason is that it's 
really tied to Pulsar client API and not relevant to other sources and sinks). 
   
   I have added a new interface `RecordWithEncryptionContext` in 
`pulsar-functions-instance`, alongside `PulsarSource` implemenentation. 
   
   Sink implementations, can check `s instanceof RecordWithEncryptionContext` 
and downcast from there to access the `EncryptionContext`. 
   
   The dependency here is "provided" because the jar will always be added by 
function runtime. In this case we need it to access the interface 
`RecordWithEncryptionContext`, but there's no need to package it again with the 
sink.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to