HomeGuides
Log In
Guides

Short Description

Trash discards data. For debugging purpose, it can write its data to a file (local or remote), or Console tab. Multiple inputs can be connected for improved graph legibility.

COMPONENTDATA OUTPUTINPUT PORTSOUTPUT PORTSTRANSFORMATIONTRANSF. REQUIREDJAVACTLAUTO-PROPAGATED METADATA
Trashnone1-n0xxxxx

Ports

PORT TYPENUMBERREQUIREDDESCRIPTIONMETADATA
Input1-nFor received data recordsAny

Metadata

Trash does not propagate metadata.

It has no metadata templates.

Trash Attributes

ATTRIBUTEREQDESCRIPTIONPOSSIBLE VALUES
Basic
Debug printBy default, all records are discarded. If set to true, all records are written to the debug file (if specified), or Console tab. You do not need to switch Log level from its default value (INFO). This mode is only supported when a single input port is connected.
Debug file URLAttribute specifying debug output file. See Supported File URL Formats for Writers. If the 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 appendBy 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
CharsetEncoding of debug output.UTF-8 (default) | <other encodings>
Advanced
Print trash IDBy default, trash ID is not written to the debug output. If set to true, ID of the Trash is written to the debug file, or Console tab. You do not need to switch Log level from its default value (INFO).false (default) | true
Create directoriesBy default, non-existing directories are not created. If set to true, they are created.false (default) | true
ModeTrash can run in either Performance 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

See also

DataGenerator
Common properties of components
Specific attribute types
Common Properties of Writers