Considering the mask as a tree, this function takes the mask and defines an entry
in a hashmap with the path-to-node as keys and (empty) array as values, for each node
that is not a leaf. Furthermore, it insert all the true leafs (actually the path-to-leaf)
into an array
Parameters
mask: any
the schema mask with true or false values for each field
Considering the mask as a tree, this function takes the mask and defines an entry in a hashmap with the path-to-node as keys and (empty) array as values, for each node that is not a leaf. Furthermore, it insert all the
true
leafs (actually the path-to-leaf) into an array