vernedeng commented on code in PR #10734: URL: https://github.com/apache/inlong/pull/10734#discussion_r1702438849
########## inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/elasticsearch/DefaultEvent2IndexRequestHandler.java: ########## @@ -105,6 +110,32 @@ public EsIndexRequest parse(EsSinkContext context, ProfileEvent event) { return indexRequest; } + @Override + public List<EsIndexRequest> parse( + EsSinkContext context, + ProfileEvent event, + TransformProcessor<String, Map<String, Object>> processor) { + if (processor == null) { + log.error("find no any transform processor for es sink"); + return null; + } + + String uid = event.getUid(); + EsIdConfig idConfig = context.getIdConfig(uid); + String indexName = idConfig.parseIndexName(event.getRawLogTime()); + byte[] bodyBytes = event.getBody(); + String strContext = new String(bodyBytes, Charset.defaultCharset()); Review Comment: fixed, thx. -- 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: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org