Interface EventBeanService

All Superinterfaces:
com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory

public interface EventBeanService extends com.espertech.esper.common.internal.event.core.EventBeanTypedEventFactory
Services for obtaining EventType information and constructing EventBean events.
  • 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 Type
    Method
    Description
    adapterForAvro(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 type
    adapterForBean(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 type
    adapterForMap(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 type
    adapterForObjectArray(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 type
    getExistsTypeByName(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

      EventBean adapterForMap(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 type
      Parameters:
      theEvent - event underlying
      eventTypeName - name of the Map event type
      Returns:
      event bean
    • getExistsTypeByName

      EventType getExistsTypeByName(String eventTypeName)
      Look up an event type by name,
      Parameters:
      eventTypeName - to look up
      Returns:
      event type or null if not found
    • adapterForBean

      EventBean adapterForBean(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)
      Parameters:
      theEvent - event underlying
      eventTypeName - event type name
      Returns:
      event bean
    • adapterForAvro

      EventBean adapterForAvro(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 type
      Parameters:
      avroGenericDataDotRecord - event underlying
      eventTypeName - name of the Avro event type
      Returns:
      event bean
    • adapterForObjectArray

      EventBean adapterForObjectArray(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 type
      Parameters:
      theEvent - event underlying
      eventTypeName - name of the Object-Array event type
      Returns:
      event bean
    • adapterForDOM

      EventBean 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 type
      Parameters:
      node - event underlying
      eventTypeName - event type name
      Returns:
      event bean