public class PassThroughSourceMapper extends SourceMapper
| Constructor and Description |
|---|
PassThroughSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getSupportedInputEventClasses()
Support classes that the source-mapper can consume for mapping processing (used for validation purposes)
|
void |
init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder optionHolder,
List<AttributeMapping> attributeMappingList,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
Initialize Source-mapper
|
protected void |
mapAndProcess(Object eventObject,
InputEventHandler inputEventHandler)
Method to map the incoming event and as pass that via inputEventHandler to process further.
|
getStreamDefinition, init, onEvent, setInputHandlerpublic void init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder optionHolder,
List<AttributeMapping> attributeMappingList,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
SourceMapperinit in class SourceMapperstreamDefinition - Associated output stream definitionoptionHolder - Mapper option holderattributeMappingList - Custom attribute mapping for source-mappingconfigReader - System configuration readersiddhiAppContext - Siddhi application contextpublic Class[] getSupportedInputEventClasses()
SourceMappergetSupportedInputEventClasses in class SourceMapperprotected void mapAndProcess(Object eventObject, InputEventHandler inputEventHandler) throws InterruptedException
SourceMappermapAndProcess in class SourceMappereventObject - Incoming event ObjectinputEventHandler - Handler to pass the converted Siddhi Event for processingInterruptedExceptionCopyright © 2017 WSO2. All rights reserved.