public class CSVSinkMapper
extends io.siddhi.core.stream.output.sink.SinkMapper
| Constructor and Description |
|---|
CSVSinkMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getOutputEventClasses()
Returns the list of classes which this sink can consume.
|
String[] |
getSupportedDynamicOptions()
Returns a list of supported dynamic options by the transport
|
void |
init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
The initialization method for
SinkMapper |
void |
mapAndSend(io.siddhi.core.event.Event[] events,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.stream.output.sink.SinkListener sinkListener)
Method to map the events and send them to
SinkListener for publishing |
void |
mapAndSend(io.siddhi.core.event.Event event,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.stream.output.sink.SinkListener sinkListener)
Method to map the event and send it to
SinkListener for publishing |
public String[] getSupportedDynamicOptions()
getSupportedDynamicOptions in class io.siddhi.core.stream.output.sink.SinkMapperpublic void init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
SinkMapperinit in class io.siddhi.core.stream.output.sink.SinkMapperstreamDefinition - containing stream definition bind to the SinkMapperoptionHolder - Option holder containing static and dynamic configuration related
to the SinkMapperpayloadTemplateBuilderMap - Unmapped payload for referenceconfigReader - to read the sink related system configuration.siddhiAppContext - the context of the SiddhiApp used to
get siddhi related utilty functions.public Class[] getOutputEventClasses()
getOutputEventClasses in class io.siddhi.core.stream.output.sink.SinkMapperpublic void mapAndSend(io.siddhi.core.event.Event[] events,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.stream.output.sink.SinkListener sinkListener)
SinkListener for publishingmapAndSend in class io.siddhi.core.stream.output.sink.SinkMapperevents - Events that need to be mappedoptionHolder - Option holder containing static and dynamic options related to the mapperpayloadTemplateBuilderMap - To build the message payload based on the given templatesinkListener - SinkListener that will be called with the mapped eventspublic void mapAndSend(io.siddhi.core.event.Event event,
io.siddhi.core.util.transport.OptionHolder optionHolder,
Map<String,io.siddhi.core.util.transport.TemplateBuilder> payloadTemplateBuilderMap,
io.siddhi.core.stream.output.sink.SinkListener sinkListener)
SinkListener for publishingmapAndSend in class io.siddhi.core.stream.output.sink.SinkMapperevent - Event that need to be mappedoptionHolder - Option holder containing static and dynamic options related to the mapperpayloadTemplateBuilderMap - To build the message payload based on the given templatesinkListener - SinkListener that will be called with the mapped eventCopyright © 2019 WSO2. All rights reserved.