KV
kv parser
KV parsing inspired by logstash's kv plugin.
Parses a string into a map. It is possible to split based on different characters that represent either field or key value boundaries.
A good part of the logstash functionality will be handled outside of this function and in a generic way in tremor script.
Use as a library
The kv parser was designed so that KV style parsing could be embedded into tremor's scripting language for extract operations.
The parser can also be used standalone
let kv = compile.expect;
let r = kv.run.expect;
assert_eq!;
assert_eq!;
assert_eq!;