public class XmlSourceMapper
extends org.wso2.siddhi.core.stream.input.source.SourceMapper
ComplexEventChunk. This extension
accepts optional xpath expressions to select specific attributes from the stream.| Constructor and Description |
|---|
XmlSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNullInTransportProperties() |
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 XML string from
Source, converts it to
a ComplexEventChunk and send to the
OutputCallback. |
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 - public Class[] getSupportedInputEventClasses()
getSupportedInputEventClasses in class org.wso2.siddhi.core.stream.input.source.SourceMapperprotected void mapAndProcess(Object eventObject, org.wso2.siddhi.core.stream.input.source.InputEventHandler inputEventHandler) throws InterruptedException
Source, converts it to
a ComplexEventChunk and send to the
OutputCallback.mapAndProcess in class org.wso2.siddhi.core.stream.input.source.SourceMappereventObject - the input event, given as an XML stringinputEventHandler - input handlerInterruptedExceptionprotected boolean allowNullInTransportProperties()
allowNullInTransportProperties in class org.wso2.siddhi.core.stream.input.source.SourceMapperCopyright © 2017 WSO2. All rights reserved.