In the world of streaming data processing, text manipulation is a vital aspect of many applications. To effectively handle various text processing tasks, Macrometa GDN Stream Workers offer an extensive set of string functions designed to perform a wide range of operations on text data in real time.
The string functions available for stream workers include
split, and many others. These functions enable you to perform operations such as concatenating strings, searching for substrings, converting text to hexadecimal representations, modifying text case, and splitting text based on specific delimiters.
This section explores the string functions offered by Macrometa GDN Stream Workers, showcasing their usage and highlighting their capabilities in text processing within streaming data pipelines.
📄️ charAt (Function)
This function returns the char value that is present at the given index position. of the input string.
📄️ coalesce (Function)
This returns the first input parameter value of the given argument, that is not null.
📄️ concat (Function)
This function returns a string value that is obtained as a result of concatenating two or more input string values.
📄️ contains (Function)
This function returns true if theinput.string contains the specified sequence of char values in the search.string.
📄️ equalsIgnoreCase (Function)
This returns a boolean value by comparing two strings lexicographically without considering the letter case.
📄️ fillTemplate (Function)
fillTemplate(string, map) will replace all the keys in the string using
📄️ groupConcat (Aggregate Function)
This function aggregates the received events by concatenating the keys
📄️ hex (Function)
This function returns a hexadecimal string by converting each byte of
📄️ length (Function)
Returns the length of the input string.
📄️ lower (Function)
Converts the capital letters in the input string to the equivalent simple letters.
📄️ regexp (Function)
Returns a boolean value based whether an input string matches
📄️ repeat (Function)
Repeats the input string for a specified number of times.
📄️ replaceAll (Function)
Finds all the substrings of the input string that matches with the given
📄️ replaceFirst (Function)
Finds the first substring of the input string that matches with the given regular expression, and replaces it with the given replacement string.
📄️ reverse (Function)
Returns the input string in the reverse order character-wise and string-wise.
📄️ split (Function)
Splits the input.string into substrings using the value parsed in the
📄️ strcmp (Function)
Compares two strings lexicographically and returns an integer value.
📄️ substr (Function)
Returns a substring of the input string by considering a subset or all
📄️ tokenize (Stream Processor)
This function splits the input string into tokens using a given regular
📄️ trim (Function)
Returns a copy of the input string without the leading and trailing whitespace (if any).
📄️ unhex (Function)
Returns a string by converting the hexadecimal characters in the input string.
📄️ upper (Function)
Converts the simple letters in the input string to the equivalent