public class TextSourceMapper
extends io.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 |
|---|---|
protected boolean |
allowNullInTransportProperties() |
Class[] |
getSupportedInputEventClasses() |
void |
init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
Initialize the mapper and the mapping configurations.
|
protected void |
mapAndProcess(Object eventObject,
io.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(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init in class io.siddhi.core.stream.input.source.SourceMapperstreamDefinition - the StreamDefinitionoptionHolder - mapping optionsattributeMappingList - list of attributes mappingconfigReader - source config reader.protected void mapAndProcess(Object eventObject, io.siddhi.core.stream.input.source.InputEventHandler inputEventHandler) throws InterruptedException
Source, converts it to
a ComplexEventChunk and onEventHandler.mapAndProcess in class io.siddhi.core.stream.input.source.SourceMappereventObject - the input event, given as an text stringinputEventHandler - input handlerInterruptedExceptionprotected boolean allowNullInTransportProperties()
allowNullInTransportProperties in class io.siddhi.core.stream.input.source.SourceMapperpublic Class[] getSupportedInputEventClasses()
getSupportedInputEventClasses in class io.siddhi.core.stream.input.source.SourceMapperCopyright © 2019 WSO2. All rights reserved.