eclipse-kura / kura

Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.
https://eclipse.dev/kura/
Eclipse Public License 2.0
498 stars 305 forks source link

feat: add binding for Java HashMap in GraalVM #5284

Closed GregoryIvo closed 3 months ago

GregoryIvo commented 3 months ago

This is a science experiment, to try to reduce the amount of code needed to modify a wire envelope via script filter.

Note: We are using the Conventional Commits convention for our pull request titles. Please take a look at the PR title format document for the supported types and scopes.

Brief description of the PR. [e.g. Added null check on object to avoid NullPointerException]

Related Issue: This PR fixes/closes {issue number}

Description of the solution adopted: A more detailed description of the changes made to solve/close one or more issues. If the PR is simple and easy to understand this section can be skipped

Screenshots: If applicable, add screenshots to help explain your solution

Manual Tests: Optional description of the tests performed to check correct functioning of changes, useful for an efficient review

Any side note on the changes made: Description of any other change that has been made, which is not directly linked to the issue resolution [e.g. Code clean up/Sonar issue resolution]

GregoryIvo commented 3 months ago

Neat Pattern suggested by @SteffenSenchyna to accomplish this:

1) Create a wire-filter which consumes the wire-envelope you want to append 2) perform the calculations you like to the data 3) output the data key-pairs you would like from the script filter 4) use a Join component to combine wire-filter output with original wire-envlope 5) Publish!