Package org.wso2.siddhi.extension.string
Class ContainsFunctionExtension
java.lang.Object
org.wso2.siddhi.core.executor.function.FunctionExecutor
org.wso2.siddhi.extension.string.ContainsFunctionExtension
- 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 ContainsFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
contains(inputSequence, searchingSequence)
This method returns true if and only if this string contains the specified sequence of char values.
searchingSequence - the sequence to search for. eg: "WSO2"
inputSequence - the input string eg: "21 products are produced by WSO2 currently"
Accept Type(s) for contains(inputSequence, searchingSequence);
inputSequence : STRING
searchingSequence : STRING
Return Type(s): BOOLEAN
-
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
-
ContainsFunctionExtension
public ContainsFunctionExtension()
-
-
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
-