Search

Map

This document describes how to implement Map in a block coding manner.
As of April 17, 2025, HashMap's name has been changed to Map.
Index

Definition of Map

HashMap is a data structure consisting of Key, the unique address value of the data, and Value

Map Block

It introduces the blocks registered in the Map category of SyncTree NBlock.

1) Map

Used to create (declare) a Map data structure.
Connect a Pair or Document Pair block to Values.
Click the button to add or remove Value items
Below is an example of the Map block declaration.

2) Get Map Variable

Use to bring the entire Map, or the Value of a specific Key.
Enter the variable name of the Map object to import information as the first factor.
From the second factor (Item Keys), enter the key to import the Value within Map.
If the value is not entered in the temp Keys, it will bring in the entire Map.
Click the button to add and remove Item Keys.
If Item Keys are added, the values are found by sequentially looking up the Keys in the Map of the nested structure.
Below is an example of using Get HashMap Variable Block.

3) Add Map Variable

Add Key and Value to Map
Enter the variable name of the Map object to add information to as the first factor.
Click the button to add and remove Item Keys.
Below is an example of using Add Map Variable Block.

4) Remove Map Variable

Remove Key and Value from Map
Enter the variable name of the Map object to import information as the first factor.
Click the button to add and remove Item Keys.
From the second factor (Item Keys), enter the key of the Value to remove within Map.
If Item Keys are added, the Map of the nested structure queries the keys sequentially and removes the values.
Below is an example of using Remove Map Variable Block.

Map Pair Block

Pair Key/Value data to Map through Map Pair blockset

1) Pair

Used for Key/Value mapping in Map.

2) Document Pair

Used for Key/Value mapping in Map.
The function is the same as the Pair block, and additional information is used to create an API Document.

3) DataType

Specify the data type of the parameter in the Document Pair block.
Type : string, integer, double, boolean, object, array

4) ContentType

Specify the Content Type of the parameter in the Document Pair block.
Type : application/json, application/xml, application/x-www-form-urlencoded, text/plain