|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.EventBeanUtility
public class EventBeanUtility
Method to getSelectListEvents events in collections to other collections or other event types.
Constructor Summary | |
---|---|
EventBeanUtility()
|
Method Summary | |
---|---|
protected static EventBean[] |
append(EventBean[] source,
EventBean[] append)
Append arrays. |
static EventBean[] |
convert(java.util.LinkedList<Pair<EventBean,java.util.Set<EventBean>>> joinData,
java.lang.String outerEventName,
java.lang.String innerEventName,
EventType eventType)
Convert a list of pairs of event and set of events to an event array using the given names as composite event properties. |
static EventBean[] |
convert(java.util.Set<Pair<EventBean,EventBean>> set,
java.lang.String firstEventName,
java.lang.String secondEventName,
EventType eventType)
Convert a set of pairs of events to an array of events each event being a map of the underlying event objects. |
static EventBean[] |
flatten(java.util.Vector<EventBean[]> eventVector)
Flatten the vector of arrays to an array. |
static MultiKeyUntyped |
getMultiKey(EventBean event,
EventPropertyGetter[] propertyGetters)
Returns Multikey instance for given event and getters. |
static java.lang.Object[] |
getPropertyArray(EventBean event,
EventPropertyGetter[] propertyGetters)
Returns object array containing property values of given properties, retrieved via EventPropertyGetter instances. |
static java.lang.String |
printEvent(EventBean event)
Format the event and return a string representation. |
static EventBean[] |
toArray(java.util.List<EventBean> eventList)
Convert list of events to array, returning null for empty or null lists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventBeanUtility()
Method Detail |
---|
public static EventBean[] flatten(java.util.Vector<EventBean[]> eventVector)
eventVector
- vector
protected static EventBean[] append(EventBean[] source, EventBean[] append)
source
- arrayappend
- array
public static EventBean[] toArray(java.util.List<EventBean> eventList)
eventList
-
public static EventBean[] convert(java.util.LinkedList<Pair<EventBean,java.util.Set<EventBean>>> joinData, java.lang.String outerEventName, java.lang.String innerEventName, EventType eventType)
joinData
- - pairs of event and set of eventsouterEventName
- - property name for pair first eventinnerEventName
- - property name for each event in seteventType
- - map type to use for result events
public static EventBean[] convert(java.util.Set<Pair<EventBean,EventBean>> set, java.lang.String firstEventName, java.lang.String secondEventName, EventType eventType)
set
- - set of event pairsfirstEventName
- - property name of first event in pairsecondEventName
- - property name of second event in paireventType
- - type of composite event
public static java.lang.Object[] getPropertyArray(EventBean event, EventPropertyGetter[] propertyGetters)
event
- - event to get property values frompropertyGetters
- - getters to use for getting property values
public static MultiKeyUntyped getMultiKey(EventBean event, EventPropertyGetter[] propertyGetters)
event
- - event to get property values frompropertyGetters
- - getters for access to properties
public static java.lang.String printEvent(EventBean event)
event
- is the event to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |