The siddhi-execution-string extension is an extension to Siddhi that provides basic string handling capabilities such as con-cat, length, convert to lowercase, replace all, etc.
Find some useful links below:
Latest API Docs is 4.0.10.
Using the extension in WSO2 Stream Processor
-
You can use this extension in the latest WSO2 Stream Processor that is a part of WSO2 Analytics offering, with editor, debugger and simulation support.
-
This extension is shipped by default with WSO2 Stream Processor, if you wish to use an alternative version of this extension you can replace the component jar that can be found in the
<STREAM_PROCESSOR_HOME>/lib
directory.
Using the extension as a java library
- This extension can be added as a maven dependency along with other Siddhi dependencies to your project.
<dependency>
<groupId>org.wso2.extension.siddhi.execution.string</groupId>
<artifactId>siddhi-execution-string</artifactId>
<version>x.x.x</version>
</dependency>
Branch | Build Status |
---|---|
master |
- charAt ((Function))
Returns the char value as a string value at the specified index.
- coalesce ((Function))
Returns the value of the first of its input parameters that is not null
- concat ((Function))
Returns a string that is the result of concatenating two or more string values.
- contains ((Function))
This method returns
true
if theinput.string
contains the specified sequence of char values in thesearch.string
. - equalsIgnoreCase ((Function))
Compares two strings lexicographically.
- hex ((Function))
Returns a hexadecimal string representation of str,
where each byte of each character in str is converted to two hexadecimal digits - length ((Function))
Returns the length of this string.
- lower ((Function))
Converts the capital letters in the input string to the equivalent simple letters.
- regexp ((Function))
Returns whether this 'string' matches the given regular expression 'regex' or not.
- repeat ((Function))
Repeats a string for a specified number of times.
- replaceAll ((Function))
Replaces each substring of this string that matches the given expression with the given replacement.
- replaceFirst ((Function))
Replaces the first substring of this string that matches the given expression, with the given replacement.
- reverse ((Function))
Returns the reverse ordered string of the input.
- split ((Function))
Splits the source string by
split.string
and returns the substring specified via thegroup.number
. - strcmp ((Function))
Compares two strings lexicographically.
- substr ((Function))
This returns a new string that is a substring of this string
- trim ((Function))
Returns a copy of the string with leading and trailing whitespace omitted
- unhex ((Function))
unhex(str)
interprets each pair of characters in the argument as a hexadecimal number
and converts it to the byte represented by the number - upper ((Function))
Converts the simple letters in the input string to the equivalent capital/block letters.
-
Please report issues at GitHub Issue Tracker.
-
Send your contributions as pull requests to master branch.
-
Post your questions with the "Siddhi" tag in Stackoverflow.
-
Siddhi developers can be contacted via the mailing lists:
Developers List : dev@wso2.org
Architecture List : architecture@wso2.org
-
We are committed to ensuring support for this extension in production. Our unique approach ensures that all support leverages our open development methodology and is provided by the very same engineers who build the technology.
-
For more details and to take advantage of this unique opportunity contact us via http://wso2.com/support/.