Write data to properties file transform Icon Write data to properties file

Description

The Properties Output transform outputs a set of rows of data to a Java properties files.

The data needs to be structured in a key/value format to be usable for a properties file.

More information on this file format is available on Wikipedia

Supported Engines

Hop Engine

Supported

Spark

Maybe Supported

Flink

Maybe Supported

Dataflow

Maybe Supported

Options

General Tab

Option Description

Transform name

Name of the transform. This name has to be unique in a single pipeline.

Key field

The input field name that will contain the key part of the key:value pairs to be written to the properties file.

Value field

The input field name that will contain the value part of the key:value pairs to be written to the properties file.

Comment

Short comment that is copied into the top of the properties file.

Only the first line is commented out. Any additional lines must be commented out manually.

Content

Option Description

Filename

The name of the properties file to create, without the file extension.

Append

Check this option to update an existing property file. Properties in the file that are not processed by the transform will remain unchanged.

Create parent folder

Check this option if you want to automatically create the parent folder.

Accept file name from field?

Check this option if the file name is specified in an input stream field.

File name field

Specifies the field that contains the name of the file to write to.

Extension

Specify the file extension. Usually this is "properties".

Include transform number in filename

Includes the transform number (when running in multiple copies) in the output filename.

Include date in filename

Includes the date in the output filename with format yyyyMMdd (20081231).

Include time in filename

Includes the time in the output filename with format HHmmss (235959).

Show filename(s)…​

Displays the paths and names of all files to be written to.

Add File to result

Adds the generated filenames to the result of this pipeline. A unique list is kept in memory, which can be used in the next workflow action in a workflow, such as in another pipeline.