public class PassThroughSourceMapper extends SourceMapper
| Constructor and Description |
|---|
PassThroughSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNullInTransportProperties()
Method used by
SourceMapper to determine on how to handle transport properties with null values. |
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.
|
getHandler, getStreamDefinition, init, onEvent, 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 processingInterruptedException - Throws InterruptedExceptionprotected boolean allowNullInTransportProperties()
SourceMapperSourceMapper to determine on how to handle transport properties with null values. If
this returns 'false' then SourceMapper will drop any event/s with null transport
property values. If this returns
'true' then SourceMapper will send events even though they contains null transport properties.
This method will be called after init().allowNullInTransportProperties in class SourceMapperSourceMapper should allow or drop events when transport properties are null.Copyright © 2019 WSO2. All rights reserved.