[ 
https://issues.apache.org/jira/browse/FLINK-18780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182890#comment-17182890
 ] 

lothar edited comment on FLINK-18780 at 8/24/20, 1:55 AM:
----------------------------------------------------------

hello,[~renqs],may I add this constructor for FlinkKafkaProducer(String, 
SerializationSchema<IN>, Properties, Semantic) ,I think it is 

public FlinkKafkaProducer(String topicId, SerializationSchema<IN> 
serializationSchema, Properties producerConfig, FlinkKafkaProducer.Semantic 
semantic) {
 this(topicId, serializationSchema, producerConfig, new 
KafkaSerializationSchemaWrapper<>(topicId, null, false, serializationSchema),, 
semantic, DEFAULT_KAFKA_PRODUCERS_POOL_SIZE);
}


was (Author: ting.lt):
hello,[~renqs],may I add this constructor for FlinkKafkaProducer(String, 
SerializationSchema<IN>, Properties, Semantic) ,I think it is 

public FlinkKafkaProducer(String topicId, SerializationSchema<IN> 
serializationSchema, Properties producerConfig, FlinkKafkaProducer.Semantic 
semantic) {
 this(topicId, serializationSchema, producerConfig, null, semantic, 
DEFAULT_KAFKA_PRODUCERS_POOL_SIZE);
}

> FlinkKafkaProducer should add another constructor accepting 
> SerializationSchema
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-18780
>                 URL: https://issues.apache.org/jira/browse/FLINK-18780
>             Project: Flink
>          Issue Type: New Feature
>          Components: Connectors / Kafka
>    Affects Versions: 1.11.0, 1.11.1
>            Reporter: Qingsheng Ren
>            Priority: Major
>
> Currently `FlinkKafkaProducer` doesn't have a constructor like
> `FlinkKafkaProducer(String, SerializationSchema<IN>, Properties, Semantic)`
> This is used as an example in Kafka DataStream Connector's documentation. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to