Skip navigation links

Package org.thales.punch.libraries.punchlang.operator

Punch language operators.

See: Description

Package org.thales.punch.libraries.punchlang.operator Description

Punch language operators.

Punch brings in a number of powerful operators to perform more complex Json transformations or functions. Operators can be accessed directly from your punchlet using the short notation.

For example to run a key-value operator on the input 'message' field, and store the result in a 'kv' field, write: kv().on([message]).into([kv]);

This is actually equivalent to write

new KvOperator().on([message]).into([kv])

Each operator provides additional methods to configure their semantics and behavior. For example, to remove the leading '"' around values, use the KvOperator.trim() function. kv().trim().on([message]).into([kv]); Refer to each operator for its complete description.
Skip navigation links

Copyright © 2023. All rights reserved.