Class SourceMapper

    • Field Detail

      • sourceType

        protected String sourceType
      • sourceOptionHolder

        protected OptionHolder sourceOptionHolder
    • Constructor Detail

      • SourceMapper

        public SourceMapper()
    • Method Detail

      • init

        public abstract void init​(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
                                  OptionHolder optionHolder,
                                  List<AttributeMapping> attributeMappingList,
                                  ConfigReader configReader,
                                  SiddhiAppContext siddhiAppContext)
        Initialize Source-mapper
        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 abstract Class[] getSupportedInputEventClasses()
        Support classes that the source-mapper can consume for mapping processing (used for validation purposes)
        Returns:
        Supported event classes that mapper can process.
      • setInputHandler

        public final void setInputHandler​(InputHandler inputHandler)
      • getEventCount

        public long getEventCount()
      • allowNullInTransportProperties

        protected abstract boolean allowNullInTransportProperties()
        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().
        Returns:
        whether SourceMapper should allow or drop events when transport properties are null.