We assume that you have already learned what is described in:
If you want to find the right Writer for your purposes, see Writers Comparison.
Trash discards data.
Component | Data output | Input ports | Output ports | Transformation | Transf. required | Java | CTL |
---|---|---|---|---|---|---|---|
Trash | none | 1 | 0 | no | no | no | no |
Trash discards data. For debugging purpose it can write its data to a file (local or remote), or console. Multiple inputs can be connected for improved graph legibility.
Port type | Number | Required | Description | Metadata |
---|---|---|---|---|
Input | 1-n | yes | For received data records | Any |
Attribute | Req | Description | Possible values |
---|---|---|---|
Basic | |||
Debug print | By default, all records are discarded. If set to
true , all records are written to the debug
file (if specified), or console.
You do not need to switch Log level from its default value (INFO ).
This mode is only supported when single input port is connected..
| false (default) | true | |
Debug file URL | Attribute specifying debug output file. See Supported File URL Formats for Writers. If path is not
specified, the file is saved to the
${PROJECT} directory.
You do not need to switch Log level from its default value (INFO ). | ||
Debug append | By default, new records overwrite the older ones. If
set to true , new records are appended to
the older records stored in the output file(s). | false (default) | true | |
Charset | Encoding of debug output. | ISO-8859-1 (default) | <other encodings> | |
Advanced | |||
Print trash ID | By default, trash ID is not written to debug output. If
set to true , ID of the
Trash is written to debug file, or
console. You do not need to switch Log level from its default value (INFO ). | false (default) | true | |
Create directories | By default, non-existing directories are not created.
If set to true , they are created. | false (default) | true | |
Mode | Trash can run in either Performace or Validate records modes. In Performance mode the raw data is discarded, in Validate records Trash simulates a writer - attempting to deserialize the inputs. | Performance (default) | Validate records |