public class AvroSourceMapper
extends io.siddhi.core.stream.input.source.SourceMapper
ComplexEventChunk.| Modifier and Type | Field and Description |
|---|---|
static String |
USE_AVRO_DESERIALIZER |
| Constructor and Description |
|---|
AvroSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNullInTransportProperties() |
Class[] |
getSupportedInputEventClasses() |
void |
init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
Initialize the mapper and the mapping configurations.
|
protected void |
mapAndProcess(Object eventObject,
io.siddhi.core.stream.input.source.InputEventHandler inputEventHandler)
Receives an event or events as a byte[] from source, converts it to
a
ComplexEventChunk. |
static String |
toJsonString(org.apache.avro.Schema schema,
org.apache.avro.generic.GenericRecord genericRecord) |
public static final String USE_AVRO_DESERIALIZER
public void init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init in class io.siddhi.core.stream.input.source.SourceMapperstreamDefinition - optionHolder - attributeMappingList - configReader - siddhiAppContext - protected void mapAndProcess(Object eventObject, io.siddhi.core.stream.input.source.InputEventHandler inputEventHandler) throws InterruptedException, io.siddhi.core.exception.MappingFailedException
ComplexEventChunk.mapAndProcess in class io.siddhi.core.stream.input.source.SourceMappereventObject - the input, given as a byte array or ByteBufferinputEventHandler - input handlerInterruptedExceptionio.siddhi.core.exception.MappingFailedExceptionpublic static String toJsonString(org.apache.avro.Schema schema, org.apache.avro.generic.GenericRecord genericRecord) throws IOException
IOExceptionpublic Class[] getSupportedInputEventClasses()
getSupportedInputEventClasses in class io.siddhi.core.stream.input.source.SourceMapperprotected boolean allowNullInTransportProperties()
allowNullInTransportProperties in class io.siddhi.core.stream.input.source.SourceMapperCopyright © 2022 WSO2. All rights reserved.