public class TextSourceMapper
extends org.wso2.siddhi.core.stream.input.source.SourceMapper
ComplexEventChunk. This extension
accepts optional regex expressions to select specific attributes from the stream.| Constructor and Description |
|---|
TextSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getSupportedInputEventClasses() |
void |
init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
org.wso2.siddhi.core.util.transport.OptionHolder optionHolder,
List<org.wso2.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
org.wso2.siddhi.core.util.config.ConfigReader configReader,
org.wso2.siddhi.core.config.SiddhiAppContext siddhiAppContext)
Initialize the mapper and the mapping configurations.
|
protected void |
mapAndProcess(Object eventObject,
org.wso2.siddhi.core.stream.input.source.InputEventHandler inputEventHandler)
Receives an event as an text string from
Source, converts it to
a ComplexEventChunk and onEventHandler. |
public void init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
org.wso2.siddhi.core.util.transport.OptionHolder optionHolder,
List<org.wso2.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
org.wso2.siddhi.core.util.config.ConfigReader configReader,
org.wso2.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init in class org.wso2.siddhi.core.stream.input.source.SourceMapperstreamDefinition - the StreamDefinitionoptionHolder - mapping optionsattributeMappingList - list of attributes mappingconfigReader - source config reader.protected void mapAndProcess(Object eventObject, org.wso2.siddhi.core.stream.input.source.InputEventHandler inputEventHandler) throws InterruptedException
Source, converts it to
a ComplexEventChunk and onEventHandler.mapAndProcess in class org.wso2.siddhi.core.stream.input.source.SourceMappereventObject - the input event, given as an text stringinputEventHandler - input handlerInterruptedExceptionpublic Class[] getSupportedInputEventClasses()
getSupportedInputEventClasses in class org.wso2.siddhi.core.stream.input.source.SourceMapperCopyright © 2017 WSO2. All rights reserved.