RecordSplitPlugin (tmap v21.9.3) View Source

Split a record in several records. Example: From [%{"k1" => "v1", "k2" => "word1,word2,word3"}] To: [%{ "k1" => "v1", "k2" => "word1"},

 %{"k1" => "v1",

"k2" => "word2"},

 %{"k1" => "v1",

"k2" => "word3"} Using the rule [

%{

"action" => "ValueSplit", "key" => "k2", "pattern" => ","

}

]

Link to this section Summary

Link to this section Functions

Link to this function

transform(dict, options)

View Source

Callback implementation for Plugin.transform/2.