public final void init(StreamDefinition streamDefinition, String type, OptionHolder mapOptionHolder,
                           List<Element> unmappedPayloadList, Sink sink, ConfigReader mapperConfigReader,
                           LatencyTracker mapperLatencyTracker, OptionHolder sinkOptionHolder,
                           SiddhiAppContext siddhiAppContext) {
        this.mapperLatencyTracker = mapperLatencyTracker;
        this.siddhiAppContext = siddhiAppContext;
        sink.setTrpDynamicOptions(trpDynamicOptions);
        this.sinkListener = sink;
        this.sinkType = sink.getType();
        this.sinkOptionHolder = sinkOptionHolder;
        this.optionHolder = mapOptionHolder;
        this.type = type;
        buildMapperTemplate(streamDefinition, unmappedPayloadList);
        init(streamDefinition, mapOptionHolder, templateBuilderMap, mapperConfigReader, siddhiAppContext);
    }
Abstract parent class to represent event mappers. Events mappers will receive {@link Event}s and can convert them
to any desired object type (Ex: XML, JSON). Custom mappers can be implemented as extensions extending this
abstract implementation.
modules/siddhi-core/src/main/java/io/siddhi/core/stream/output/sink/SinkMapper.java