public class SelectiveStreamEventConverter extends Object implements StreamEventConverter, Serializable
StreamEventConverter.ConversionMapping| Constructor and Description |
|---|
SelectiveStreamEventConverter(List<StreamEventConverter.ConversionMapping> conversionMappings) |
| Modifier and Type | Method and Description |
|---|---|
void |
convertComplexEvent(ComplexEvent complexEvent,
StreamEvent borrowedEvent)
Method to construct(change format) new StreamEvent from StreamEvent
|
void |
convertData(long timestamp,
Object[] data,
ComplexEvent.Type type,
StreamEvent borrowedEvent)
Method to construct(change format) timeStamp and data from StreamEvent
|
void |
convertData(long timeStamp,
Object[] data,
StreamEvent borrowedEvent)
Method to construct(change format) timeStamp and data from StreamEvent
|
void |
convertEvent(Event event,
StreamEvent borrowedEvent)
Method to construct StreamEvent form Event
|
public SelectiveStreamEventConverter(List<StreamEventConverter.ConversionMapping> conversionMappings)
public void convertData(long timestamp,
Object[] data,
ComplexEvent.Type type,
StreamEvent borrowedEvent)
StreamEventConverterconvertData in interface StreamEventConvertertimestamp - timeStamp of the eventdata - output data of the eventtype - output type of the eventborrowedEvent - Event that will be populatedpublic void convertEvent(Event event, StreamEvent borrowedEvent)
StreamEventConverterconvertEvent in interface StreamEventConverterevent - Event to be convertedborrowedEvent - Event that will be populatedpublic void convertComplexEvent(ComplexEvent complexEvent, StreamEvent borrowedEvent)
StreamEventConverterconvertComplexEvent in interface StreamEventConvertercomplexEvent - StreamEvent to be ConvertedborrowedEvent - Event that will be populatedpublic void convertData(long timeStamp,
Object[] data,
StreamEvent borrowedEvent)
StreamEventConverterconvertData in interface StreamEventConvertertimeStamp - timeStamp of the eventdata - output data of the eventborrowedEvent - Event that will be populatedCopyright © 2018 WSO2. All rights reserved.