Key Value Dataset Sink (Deprecated)
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 |
Value Field | No | Optional. The name of the field to use as the value. Defaults to |
Output Schema | No | Required. The output schema for the data. |
Example
This example writes to a KeyValueTable named items
:
Property | Value |
---|---|
Table Name |
|
Key Field |
|
Value Field |
|
It takes records with the following schema as input:
field name | type |
---|---|
id | bytes |
description | bytes |
When writing to the KeyValueTable, the id
field will be used as the key, and the description
field will be used as the value.
Created in 2020 by Google Inc.