You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/05/31 03:18:01 UTC

[GitHub] [incubator-inlong] EMsnap commented on a diff in pull request #4449: [INLONG-4447][Manager] Replace the InlongStreamConf with InlongStreamInfo for manager-client

EMsnap commented on code in PR #4449:
URL: https://github.com/apache/incubator-inlong/pull/4449#discussion_r885170992


##########
inlong-manager/manager-client-examples/src/test/java/org/apache/inlong/manager/client/BaseExample.java:
##########
@@ -92,6 +96,23 @@ public InlongGroupInfo createGroupInfo() {
         return pulsarInfo;
     }
 
+    /**
+     * Create inlong stream info
+     */
+    public InlongStreamInfo createStreamInfo() {
+        InlongStreamInfo streamInfo = new InlongStreamInfo();
+        streamInfo.setName(this.getStreamId());
+        streamInfo.setDataEncoding(StandardCharsets.UTF_8.toString());
+        streamInfo.setDataSeparator(DataSeparator.VERTICAL_BAR.getSeparator());
+        // if you need strictly order for data, set to 1
+        streamInfo.setSyncSend(1);

Review Comment:
   magic num



-- 
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-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org