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