Interface EventBeanService
- All Superinterfaces:
com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
public interface EventBeanService
extends com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
ADAPTERFORTYPEDAVRO, ADAPTERFORTYPEDBEAN, ADAPTERFORTYPEDDOM, ADAPTERFORTYPEDJSON, ADAPTERFORTYPEDMAP, ADAPTERFORTYPEDOBJECTARRAY, ADAPTERFORTYPEDWRAPPER, EPTYPE
-
Method Summary
Modifier and TypeMethodDescriptionadapterForAvro
(Object avroGenericDataDotRecord, String eventTypeName) Construct an event bean for a given Avro GenericData.Record using the event type name to look up the Avro event typeadapterForBean
(Object theEvent, String eventTypeName) Construct an event bean for a given bean (Object, POJO) using the class of the object to determine the Bean-only event type (not for Map/Object-Array/Avro/XML events)adapterForDOM
(Node node, String eventTypeName) Construct an event bean for a given XML-DOM using the node root node name to look up the XML-DOM event typeadapterForMap
(Map<String, Object> theEvent, String eventTypeName) Construct an event bean for a given Map using the event type name to look up the Map event typeadapterForObjectArray
(Object[] theEvent, String eventTypeName) Construct an event bean for a given Object-Array using the event type name to look up the Object-Array event typegetExistsTypeByName
(String eventTypeName) Look up an event type by name,Methods inherited from interface com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
adapterForGivenType, adapterForTypedAvro, adapterForTypedBean, adapterForTypedDOM, adapterForTypedJson, adapterForTypedMap, adapterForTypedObjectArray, adapterForTypedWrapper
-
Method Details
-
adapterForMap
Construct an event bean for a given Map using the event type name to look up the Map event type- Parameters:
theEvent
- event underlyingeventTypeName
- name of the Map event type- Returns:
- event bean
-
getExistsTypeByName
Look up an event type by name,- Parameters:
eventTypeName
- to look up- Returns:
- event type or null if not found
-
adapterForBean
Construct an event bean for a given bean (Object, POJO) using the class of the object to determine the Bean-only event type (not for Map/Object-Array/Avro/XML events)- Parameters:
theEvent
- event underlyingeventTypeName
- event type name- Returns:
- event bean
-
adapterForAvro
Construct an event bean for a given Avro GenericData.Record using the event type name to look up the Avro event type- Parameters:
avroGenericDataDotRecord
- event underlyingeventTypeName
- name of the Avro event type- Returns:
- event bean
-
adapterForObjectArray
Construct an event bean for a given Object-Array using the event type name to look up the Object-Array event type- Parameters:
theEvent
- event underlyingeventTypeName
- name of the Object-Array event type- Returns:
- event bean
-
adapterForDOM
Construct an event bean for a given XML-DOM using the node root node name to look up the XML-DOM event type- Parameters:
node
- event underlyingeventTypeName
- event type name- Returns:
- event bean
-