Class Pol2CartStreamFunctionProcessor
- java.lang.Object
-
- io.siddhi.core.query.processor.stream.AbstractStreamProcessor<S>
-
- io.siddhi.core.query.processor.stream.function.StreamFunctionProcessor
-
- io.siddhi.core.query.processor.stream.function.Pol2CartStreamFunctionProcessor
-
- All Implemented Interfaces:
Processor,ExternalReferencedHolder
public class Pol2CartStreamFunctionProcessor extends StreamFunctionProcessor
Created on 1/26/15.
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.query.processor.stream.AbstractStreamProcessor
attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, inputDefinition, metaStreamEvent, nextProcessor, siddhiQueryContext, stateHolder, streamEventClonerHolder
-
-
Constructor Summary
Constructors Constructor Description Pol2CartStreamFunctionProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.siddhi.query.api.definition.Attribute>getReturnAttributes()protected StateFactoryinit(io.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiQueryContext siddhiQueryContext)The init method of the StreamFunctionprotected Object[]process(Object data)The process method of the StreamFunction, used when single function parameter is providedprotected Object[]process(Object[] data)The process method of the StreamFunction, used when multiple function parameters are providedvoidstart()This will be called only once and this can be used to acquire required resources for the processing element.voidstop()This will be called only once and this can be used to release the acquired resources for processing.-
Methods inherited from class io.siddhi.core.query.processor.stream.function.StreamFunctionProcessor
getProcessingMode, init, processEventChunk
-
Methods inherited from class io.siddhi.core.query.processor.stream.AbstractStreamProcessor
constructStreamEventPopulater, getNextProcessor, initProcessor, isStateful, process, process, setNextProcessor, setStreamEventCloner, setToLast
-
-
-
-
Method Detail
-
init
protected StateFactory init(io.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiQueryContext siddhiQueryContext)
The init method of the StreamFunction- Specified by:
initin classStreamFunctionProcessor- Parameters:
inputDefinition- the incoming stream definitionattributeExpressionExecutors- the executors for the function parameterssiddhiQueryContext- siddhi query contextconfigReader- this hold theStreamFunctionProcessorextensions configuration reader.outputExpectsExpiredEvents- is expired events sent as output- Returns:
- the additional output attributes introduced by the function
-
process
protected Object[] process(Object[] data)
The process method of the StreamFunction, used when multiple function parameters are provided- Specified by:
processin classStreamFunctionProcessor- Parameters:
data- the data values for the function parameters- Returns:
- the date for additional output attributes introduced by the function
-
process
protected Object[] process(Object data)
The process method of the StreamFunction, used when single function parameter is provided- Specified by:
processin classStreamFunctionProcessor- Parameters:
data- the data value for the function parameter- Returns:
- the date for additional output attribute introduced by the function
-
start
public void start()
Description copied from interface:ExternalReferencedHolderThis will be called only once and this can be used to acquire required resources for the processing element. This will be called after initializing the system and before starting to process the events.
-
stop
public void stop()
Description copied from interface:ExternalReferencedHolderThis will be called only once and this can be used to release the acquired resources for processing. This will be called before shutting down the system.
-
getReturnAttributes
public List<io.siddhi.query.api.definition.Attribute> getReturnAttributes()
- Specified by:
getReturnAttributesin classAbstractStreamProcessor
-
-