Class EventBeanServiceImpl
java.lang.Object
com.espertech.esper.common.internal.event.core.EventBeanServiceImpl
- All Implemented Interfaces:
EventBeanService
,EventBeanTypedEventFactory
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
ADAPTERFORTYPEDAVRO, ADAPTERFORTYPEDBEAN, ADAPTERFORTYPEDDOM, ADAPTERFORTYPEDJSON, ADAPTERFORTYPEDMAP, ADAPTERFORTYPEDOBJECTARRAY, ADAPTERFORTYPEDWRAPPER, EPTYPE
-
Constructor Summary
ConstructorDescriptionEventBeanServiceImpl
(EventTypeRepositoryImpl eventTypeRepositoryPreconfigured, PathRegistry<String, EventType> pathEventTypes, EventBeanTypedEventFactory typedEventFactory) -
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 typeadapterForTypedAvro
(Object avroGenericDataDotRecord, EventType eventType) adapterForTypedBean
(Object bean, EventType eventType) adapterForTypedDOM
(Node node, EventType eventType) adapterForTypedJson
(Object underlying, EventType eventType) adapterForTypedMap
(Map<String, Object> properties, EventType eventType) adapterForTypedObjectArray
(Object[] props, EventType eventType) adapterForTypedWrapper
(EventBean decoratedUnderlying, Map<String, Object> map, EventType wrapperEventType) getExistsTypeByName
(String eventTypeName) Look up an event type by name,Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
adapterForGivenType
-
Constructor Details
-
EventBeanServiceImpl
public EventBeanServiceImpl(EventTypeRepositoryImpl eventTypeRepositoryPreconfigured, PathRegistry<String, EventType> pathEventTypes, EventBeanTypedEventFactory typedEventFactory)
-
-
Method Details
-
adapterForMap
Description copied from interface:EventBeanService
Construct an event bean for a given Map using the event type name to look up the Map event type- Specified by:
adapterForMap
in interfaceEventBeanService
- Parameters:
theEvent
- event underlyingeventTypeName
- name of the Map event type- Returns:
- event bean
-
adapterForBean
Description copied from interface:EventBeanService
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)- Specified by:
adapterForBean
in interfaceEventBeanService
- Parameters:
theEvent
- event underlyingeventTypeName
- event type name- Returns:
- event bean
-
adapterForAvro
Description copied from interface:EventBeanService
Construct an event bean for a given Avro GenericData.Record using the event type name to look up the Avro event type- Specified by:
adapterForAvro
in interfaceEventBeanService
- Parameters:
avroGenericDataDotRecord
- event underlyingeventTypeName
- name of the Avro event type- Returns:
- event bean
-
adapterForObjectArray
Description copied from interface:EventBeanService
Construct an event bean for a given Object-Array using the event type name to look up the Object-Array event type- Specified by:
adapterForObjectArray
in interfaceEventBeanService
- Parameters:
theEvent
- event underlyingeventTypeName
- name of the Object-Array event type- Returns:
- event bean
-
adapterForDOM
Description copied from interface:EventBeanService
Construct an event bean for a given XML-DOM using the node root node name to look up the XML-DOM event type- Specified by:
adapterForDOM
in interfaceEventBeanService
- Parameters:
node
- event underlyingeventTypeName
- event type name- Returns:
- event bean
-
getExistsTypeByName
Description copied from interface:EventBeanService
Look up an event type by name,- Specified by:
getExistsTypeByName
in interfaceEventBeanService
- Parameters:
eventTypeName
- to look up- Returns:
- event type or null if not found
-
adapterForTypedBean
- Specified by:
adapterForTypedBean
in interfaceEventBeanTypedEventFactory
-
adapterForTypedAvro
- Specified by:
adapterForTypedAvro
in interfaceEventBeanTypedEventFactory
-
adapterForTypedMap
- Specified by:
adapterForTypedMap
in interfaceEventBeanTypedEventFactory
-
adapterForTypedObjectArray
- Specified by:
adapterForTypedObjectArray
in interfaceEventBeanTypedEventFactory
-
adapterForTypedDOM
- Specified by:
adapterForTypedDOM
in interfaceEventBeanTypedEventFactory
-
adapterForTypedWrapper
public EventBean adapterForTypedWrapper(EventBean decoratedUnderlying, Map<String, Object> map, EventType wrapperEventType) - Specified by:
adapterForTypedWrapper
in interfaceEventBeanTypedEventFactory
-
adapterForTypedJson
- Specified by:
adapterForTypedJson
in interfaceEventBeanTypedEventFactory
-