nest
- Take a set of records and place them in a maplift
- Take a map by key and lift its records upWildcard
value Key*
under a new key NestKey
the transformation becomes,Nested_under
value NestKey*
the transformation becomes,nest
or lift
]nest
or lift
nest
nest
Wildcard
under this keylift
Nested_under
keyNote: Using the command line mode requires quotes parse the wildcard properly. The use of a configuration file is recommended.
Mem.*
under the new key NEST
.Mem.*
and Swap,*
items under the Stats
key and then reverses these actions with a lift
operation. The output appears unchanged.Mem.*
and nests them under LAYER1
, which itself is then nested under LAYER2
, which is nested under LAYER3
.lift
filter three times to reverse the operations. The end result is that all records are at the top level, without nesting, again. One prefix is added for each level that is lifted.