This topic describes the parameters that are supported by Stream Writer and how to configure Stream Writer by using the codeless user interface (UI) and code editor.

Stream Writer displays the data that is obtained from a reader on the screen or discards the data. Stream Writer is used to test the performance and basic features of Data Integration.

Parameters

print
  • Description: specifies whether to display the data that is obtained from a reader on the screen.
  • Required: No
  • Default value: true

Configure Stream Writer by using the codeless UI

This method is not supported.

Configure Stream Writer by using the code editor

You can configure Stream Writer by using the code editor. For more information, see Create a sync node by using the code editor.

In the following code, a synchronization node is configured to display the data that is obtained from a reader on the screen:
{
    "type":"job",
    "version":"2.0",// The version number. 
    "steps":[
        {
            "stepType":"stream",
            "parameter":{},
            "name":"Reader",
            "category":"reader"
        },
        {
            "stepType":"stream",// The writer type. 
            "parameter":{
                "print":false,// Specifies whether to display data on the screen. 
                "fieldDelimiter":","// The column delimiter. 
            },
            "name":"Writer",
            "category":"writer"
        }
    ],
    "setting":{
        "errorLimit":{
            "record":"0"// The maximum number of dirty data records allowed. 
        },
        "speed":{
            "throttle":true,// Specifies whether to enable bandwidth throttling. The value false indicates that bandwidth throttling is disabled, and the value true indicates that bandwidth throttling is enabled. The mbps parameter takes effect only when the throttle parameter is set to true. 
            "concurrent":1, // The maximum number of parallel threads. 
            "mbps":"12"// The maximum transmission rate.
        }
    },
    "order":{
        "hops":[
            {
                "from":"Reader",
                "to":"Writer"
            }
        ]
    }
}