|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.MapEventType
public class MapEventType
Implementation of the EventType
interface for handling plain Maps containing name value pairs.
Constructor Summary | |
---|---|
MapEventType(String typeName,
Map<String,Class> propertyTypes,
EventAdapterService eventAdapterService)
Constructor takes a type name, map of property names and types. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAlias()
Returns the event type alias. |
Iterator<EventType> |
getDeepSuperTypes()
Returns iterator over all super types to event type, going up the hierarchy and including all Java interfaces (and their extended interfaces) and superclasses as EventType instances. |
EventPropertyGetter |
getGetter(String propertyName)
Get the getter for a specified event property. |
String[] |
getPropertyNames()
Get all valid property names for the event type. |
Class |
getPropertyType(String propertyName)
Get the type of an event property as returned by the "getter" method for that property. |
EventType[] |
getSuperTypes()
Returns an array of event types that are super to this event type, from which this event type inherited event properties. |
Map<String,Class> |
getTypes()
Returns the name-type map of map properties. |
Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
Object |
getValue(String propertyName,
Map values)
Returns the value of the given property, allowing nested property names. |
int |
hashCode()
|
boolean |
isProperty(String propertyName)
Check that the given property name is valid for this event type, ie. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapEventType(String typeName, Map<String,Class> propertyTypes, EventAdapterService eventAdapterService)
typeName
- is the event type name used to distinquish map types that have the same property types,
empty string for anonymous maps, or for insert-into statements generating map events
the stream namepropertyTypes
- is pairs of property name and typeeventAdapterService
- is required for access to objects properties within map valuesMethod Detail |
---|
public final Class getPropertyType(String propertyName)
EventType
getPropertyType
in interface EventType
propertyName
- is the property name
public final Class getUnderlyingType()
EventType
getUnderlyingType
in interface EventType
public EventPropertyGetter getGetter(String propertyName)
EventType
getGetter
in interface EventType
propertyName
- is the property name
public Object getValue(String propertyName, Map values)
propertyName
- is the name of the propertyvalues
- is the map to get the value from
public String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
public boolean isProperty(String propertyName)
EventType
isProperty
in interface EventType
propertyName
- is the property to check
public EventType[] getSuperTypes()
EventType
For Java bean instances underlying the event this method returns the event types for all superclasses extended by the Java bean and all interfaces implemented by the Java bean.
getSuperTypes
in interface EventType
public Iterator<EventType> getDeepSuperTypes()
EventType
getDeepSuperTypes
in interface EventType
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getAlias()
public Map<String,Class> getTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |