Class PassThroughSourceMapper

  • All Implemented Interfaces:
    SourceEventListener

    public class PassThroughSourceMapper
    extends SourceMapper
    Event Mapper implementation to handle pass-through scenario where user does not need to do any mapping.
    • Constructor Detail

      • PassThroughSourceMapper

        public PassThroughSourceMapper()
    • Method Detail

      • init

        public void init​(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
                         OptionHolder optionHolder,
                         List<AttributeMapping> attributeMappingList,
                         ConfigReader configReader,
                         SiddhiAppContext siddhiAppContext)
        Description copied from class: SourceMapper
        Initialize Source-mapper
        Specified by:
        init in class SourceMapper
        Parameters:
        streamDefinition - Associated output stream definition
        optionHolder - Mapper option holder
        attributeMappingList - Custom attribute mapping for source-mapping
        configReader - System configuration reader
        siddhiAppContext - Siddhi application context
      • getSupportedInputEventClasses

        public Class[] getSupportedInputEventClasses()
        Description copied from class: SourceMapper
        Support classes that the source-mapper can consume for mapping processing (used for validation purposes)
        Specified by:
        getSupportedInputEventClasses in class SourceMapper
        Returns:
        Supported event classes that mapper can process.
      • allowNullInTransportProperties

        protected boolean allowNullInTransportProperties()
        Description copied from class: SourceMapper
        Method used by SourceMapper 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().
        Specified by:
        allowNullInTransportProperties in class SourceMapper
        Returns:
        whether SourceMapper should allow or drop events when transport properties are null.