srkukarni commented on a change in pull request #2397: Integrate Functions with 
Schema
URL: https://github.com/apache/incubator-pulsar/pull/2397#discussion_r211515618
 
 

 ##########
 File path: 
pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Context.java
 ##########
 @@ -161,15 +161,19 @@
 
     /**
      * Publish an object using serDe for serializing to the topic
-     * @param topicName The name of the topic for publishing
-     * @param object The object that needs to be published
-     * @param serDeClassName The class name of the class that needs to be used 
to serialize the object before publishing
+     *
+     * @param topicName
+     *            The name of the topic for publishing
+     * @param object
+     *            The object that needs to be published
+     * @param topicsPattern
+     *            Either a builtin schema type (eg: "avro", "json", 
"protobuf") or the class name of the custom schema class
      * @return A future that completes when the framework is done publishing 
the message
      */
-    <O> CompletableFuture<Void> publish(String topicName, O object, String 
serDeClassName);
+    <O> CompletableFuture<Void> publish(String topicName, O object, String 
schemaType);
 
 Review comment:
   Serde's are not being deprecated. The only thing that is being deprecated is 
DefaultSerde. Thus I believe we should add another interface supporting schema 
rather than delete this

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to