garyli1019 commented on a change in pull request #2281:
URL: https://github.com/apache/hudi/pull/2281#discussion_r550194999
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/source/JsonStringToHoodieRecordMapFunction.java
##########
@@ -40,32 +43,47 @@
*/
public class JsonStringToHoodieRecordMapFunction implements
MapFunction<String, HoodieRecord> {
- private final HoodieFlinkStreamer.Config cfg;
+ private TypedProperties props;
private KeyGenerator keyGenerator;
private AvroConvertor avroConvertor;
+ private Option<String> schemaStr = Option.empty();
+ private String payloadClassName;
+ private String orderingField;
- public JsonStringToHoodieRecordMapFunction(HoodieFlinkStreamer.Config cfg) {
- this.cfg = cfg;
+ public JsonStringToHoodieRecordMapFunction(TypedProperties props) {
+ this.props = props;
+ init();
+ }
+
+ public JsonStringToHoodieRecordMapFunction(TypedProperties props, String
schemaStr) {
Review comment:
Done.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]