Map Nodes
Implement map nodes in Blup for key-value pair data management within your application.
Last updated
Implement map nodes in Blup for key-value pair data management within your application.
Last updated
This section consists of all the helper function nodes of map.
This node removes the key and its associated value from the map, if present. If the key is not found, no changes are made to the map.
For example, map {“athul”: “chaudhary”}, key = “atul”, so node removes the key-value pairs that have key matching with the provided key. In this case, the node returns an empty map because there is only one value in the map.
This node removes all the values that are present in the provided map, and then it returns the empty map.
For example, map = {“atul” : “chaudhary”}, this node return the map ={} which is the empty map.
This node helps you to Add all key/value pairs of others to this map. And If a key of other is already in the provided map, its value is overwritten [make sure that both map have unique keys].
For example, map = {“CSE”:”atul”}, other map = {“IT”: “ashutosh”}, then the node return new map = {“CSE”: “atul”, “IT”: “ashutosh”}.
This node checks if the provided key is present in the map.
For example, map = {“CSE”: “atul”}, key = “CSE”, then the node return true. If the key = “IT”, then the node return false.
This node checks if the provided value is present in the map.
For example, Input map: {"CSE": "atul"}, value: "atul" Output: true
Input map: {"CSE": "atul"}, value: "ashutosh" Output: false
This node checks if the provided map is empty or not if empty then it return true, if not then it returns false.
For example,Input map: {} Output: true Input map: {"CSE": "atul"} Output: false [because map consists of some value ].
This node calculates the number of key-value pairs in the map.
For example,Input map: {"CSE": "atul", "IT": "ashutosh"} Output length: 2 [because two key-values pairs are present].
This node adds a new key-value pair to the map to the existing map.
For example,Input map: {"CSE": "atul"}, key: "IT", value: "ashutosh" Output map: {"CSE": "atul", "IT": "ashutosh"}
This node helps you to add multiple key-value pairs in a single go, this node returns the updated mao with all the newly added key-value pairs.
For example, Input map: {"atul": "chaudhary"}, keys: "sahaj", "ashutosh", values: "rana", "agarwal" Output map: {"atul": "chaudhary", "sahaj": "rana", "ashutosh": "agarwal"}
This node retrieves the value associated with a specified key from the map.
For example, Input map: {"CSE": "atul"}, key: "CSE" Output value: "atul"
This node retrieves all the keys present in the map.
For example, Input map: {"CSE": "atul", "IT": "ashutosh"} Output keys: ["CSE", "IT"]
This node retrieves all the values present in the map.
For example, Input map: {"CSE": "atul", "IT": "ashutosh"} Output values: ["atul", "ashutosh"]
If you have any ideas to make Blup better you can share them through our Discord community channel