Class RepeatFunctionExtension

java.lang.Object
org.wso2.siddhi.core.executor.function.FunctionExecutor
org.wso2.siddhi.extension.string.RepeatFunctionExtension
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 RepeatFunctionExtension extends org.wso2.siddhi.core.executor.function.FunctionExecutor
repeat(string , times) Repeats a string for a specified number of times. Accept Type(s): (STRING,INT) Return Type(s): STRING
  • Field Summary

    Fields inherited from class org.wso2.siddhi.core.executor.function.FunctionExecutor

    attributeExpressionExecutors, elementId, executionPlanContext, queryName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Object
     
    protected Object
    execute(Object[] data)
     
    org.wso2.siddhi.query.api.definition.Attribute.Type
     
    protected void
    init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext)
     
    void
     
    void
     
    void
     

    Methods inherited from class org.wso2.siddhi.core.executor.function.FunctionExecutor

    cloneExecutor, execute, getElementId, initExecutor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RepeatFunctionExtension

      public RepeatFunctionExtension()
  • Method Details

    • init

      protected void init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext)
      Specified by:
      init in class org.wso2.siddhi.core.executor.function.FunctionExecutor
    • execute

      protected Object execute(Object[] data)
      Specified by:
      execute in class org.wso2.siddhi.core.executor.function.FunctionExecutor
    • execute

      protected Object execute(Object data)
      Specified by:
      execute in class org.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

      public Object[] currentState()
    • restoreState

      public void restoreState(Object[] state)