Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: Datasets and the Key Value Dataset Sink are deprecated and will be removed in CDAP 7.0.0.

Writes records to a KeyValueTable, using configurable fields from input records as the key and value.

The source is used whenever you need to write to a KeyValueTable in batch. For example, you may want to periodically copy portions of a Table into a KeyValueTable.

Configuration

Property

Macro Enabled?

Description

Table Name

Yes

Required. Name of the dataset. If it does not already exist, one will be created.

Key Field

No

Optional. The name of the field to use as the key. Defaults to key.

Value Field

No

Optional. The name of the field to use as the value. Defaults to value.

Output Schema

No

Required. The output schema for the data.

Example

This example writes to a KeyValueTable named items:

...