Some Writers allow to write data to the optional output port.
Here we provide the list of Writers allowing output port writing:
CSVWriter
XLSDataWriter
XMLWriter
StructuredDataWriter
The attributes for the output port writing in these components may be defined using the URL File Dialog.
If you connect the optional output port of any of these
Writers to an edge, you must also connect the
other side of this edge to another component. Metadata of this edge
must contain the specified FieldName
of
string
, byte
or
cbyte
data type.
Then you must set the File URL attribute of
such Writer to
port:$0.FieldName[:processingType]
.
Here processingType
is optional and can be
set to one of the following: discrete
or
stream
. If it is not set explicitly, it is
discrete
by default.
When a graph runs, data is read through the input according to the input metadata, processed by the Writer according to the specified processing type and sent subsequently to the other component through the optional output port of the Writer.
discrete
Each data record that is received through the input port is processed according to the input metadata, sent out through the optional output port, and written as the value of the specified field of the metadata of the output edge. Next records are parsed in the same way as described here.
stream
Each data record that is received through the input port is
processed in the same way as in case of discrete
processing type,
but another field containing null
value is added to the end of the output.
Such null
values mean eof
when multiple files are read again
from input port using stream
processing type.
See Input Port Reading for more information
about reading with stream
processing type.