Versions Compared

Key

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

Remark: This is currently in redesign.

The KeyValue feature allows to read, process and write data as key-value pairs, which don't have an fixed schema like tuples.

To use the feature you have to install it and use the "KeyValueObject" or "NestedKeyValueObject" data handler. The applicable operators will be automatically chosen. Until now selection and projection are supported. Also there are operators to transform key-value objects to tuples and the other way round. The feature also includes wrapper for handling of JSON and BSON data.

...

Code Block
languagepql
output = MAP({
              kvexpressions = [
								['timestamp.unixtimestamp', 'Zeit'],
								['toLong(timestamp.unixtimestamp + 1)', 'Zeit2'],
                                ['track.artist.name', 'Band'],
                                ['track.name', 'Lied']
							]
             }, input)

MEP-Functions

There are some MEP-Functions that can be used in the MAP-Operator:

  • TODO

Wrapper

The feature adds protocol handler for the common key-value data formats JSON and BSON (binary JSON).

...