Class SelectiveStreamEventConverter
- java.lang.Object
-
- io.siddhi.core.event.stream.converter.SelectiveStreamEventConverter
-
- All Implemented Interfaces:
StreamEventConverter,Serializable
public class SelectiveStreamEventConverter extends Object implements StreamEventConverter, Serializable
The converter class that converts the events into StreamEvent- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.siddhi.core.event.stream.converter.StreamEventConverter
StreamEventConverter.ConversionMapping
-
-
Constructor Summary
Constructors Constructor Description SelectiveStreamEventConverter(List<StreamEventConverter.ConversionMapping> conversionMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvertComplexEvent(ComplexEvent complexEvent, StreamEvent newEvent)Method to construct(change format) new StreamEvent from StreamEventvoidconvertData(long timestamp, Object[] data, ComplexEvent.Type type, StreamEvent newEvent)Method to construct(change format) timeStamp and data from StreamEventvoidconvertData(long timeStamp, Object[] data, StreamEvent newEvent)Method to construct(change format) timeStamp and data from StreamEventvoidconvertEvent(Event event, StreamEvent newEvent)Method to construct StreamEvent form Event
-
-
-
Constructor Detail
-
SelectiveStreamEventConverter
public SelectiveStreamEventConverter(List<StreamEventConverter.ConversionMapping> conversionMappings)
-
-
Method Detail
-
convertData
public void convertData(long timestamp, Object[] data, ComplexEvent.Type type, StreamEvent newEvent)Description copied from interface:StreamEventConverterMethod to construct(change format) timeStamp and data from StreamEvent- Specified by:
convertDatain interfaceStreamEventConverter- Parameters:
timestamp- timeStamp of the eventdata- output data of the eventtype- output type of the eventnewEvent- Event that will be populated
-
convertEvent
public void convertEvent(Event event, StreamEvent newEvent)
Description copied from interface:StreamEventConverterMethod to construct StreamEvent form Event- Specified by:
convertEventin interfaceStreamEventConverter- Parameters:
event- Event to be convertednewEvent- Event that will be populated
-
convertComplexEvent
public void convertComplexEvent(ComplexEvent complexEvent, StreamEvent newEvent)
Description copied from interface:StreamEventConverterMethod to construct(change format) new StreamEvent from StreamEvent- Specified by:
convertComplexEventin interfaceStreamEventConverter- Parameters:
complexEvent- StreamEvent to be ConvertednewEvent- Event that will be populated
-
convertData
public void convertData(long timeStamp, Object[] data, StreamEvent newEvent)Description copied from interface:StreamEventConverterMethod to construct(change format) timeStamp and data from StreamEvent- Specified by:
convertDatain interfaceStreamEventConverter- Parameters:
timeStamp- timeStamp of the eventdata- output data of the eventnewEvent- Event that will be populated
-
-