Package org.wso2.siddhi.extension.string
Class ReplaceFirstFunctionExtension
java.lang.Object
org.wso2.siddhi.core.executor.function.FunctionExecutor
org.wso2.siddhi.extension.string.ReplaceFirstFunctionExtension
- All Implemented Interfaces:
org.wso2.siddhi.core.executor.ExpressionExecutor,org.wso2.siddhi.core.util.extension.holder.EternalReferencedHolder,org.wso2.siddhi.core.util.snapshot.Snapshotable
public class ReplaceFirstFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
replaceFirst(string, regex, replacement)
Replaces the first substring of this string that matches the given expression with the given replacement.
Accept Type(s): (STRING,STRING,STRING)
Return Type(s): STRING
-
Field Summary
Fields inherited from class org.wso2.siddhi.core.executor.function.FunctionExecutor
attributeExpressionExecutors, elementId, executionPlanContext, queryName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]protected Objectprotected Objectorg.wso2.siddhi.query.api.definition.Attribute.Typeprotected voidinit(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext) voidrestoreState(Object[] state) voidstart()voidstop()Methods inherited from class org.wso2.siddhi.core.executor.function.FunctionExecutor
cloneExecutor, execute, getElementId, initExecutor
-
Constructor Details
-
ReplaceFirstFunctionExtension
public ReplaceFirstFunctionExtension()
-
-
Method Details
-
init
protected void init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext) - Specified by:
initin classorg.wso2.siddhi.core.executor.function.FunctionExecutor
-
execute
- Specified by:
executein classorg.wso2.siddhi.core.executor.function.FunctionExecutor
-
execute
- Specified by:
executein classorg.wso2.siddhi.core.executor.function.FunctionExecutor
-
start
public void start() -
stop
public void stop() -
getReturnType
public org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType() -
currentState
-
restoreState
-