|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.EventBeanUtility
public class EventBeanUtility
Method to getSelectListEvents events in collections to other collections or other event types.
Constructor Summary | |
---|---|
EventBeanUtility()
|
Method Summary | |
---|---|
static EventBean[] |
addToArray(EventBean[] array,
java.util.Collection<EventBean> eventsToAdd)
Expand the array passed in by the multiple elements to add. |
static EventBean[] |
addToArray(EventBean[] array,
EventBean eventToAdd)
Expand the array passed in by the single element to add. |
static EventBean[] |
allocatePerStreamShift(EventBean[] eventsPerStream)
|
protected static EventBean[] |
append(EventBean[] source,
EventBean[] append)
Append arrays. |
static void |
appendEvent(java.io.StringWriter writer,
EventBean theEvent)
|
static java.lang.Object |
coerce(java.lang.Object target,
java.lang.Class coercionType)
|
static boolean |
compareReferences(EventBean[] reference,
EventBean[] eventsPerStream)
|
static FragmentEventType |
createNativeFragmentType(java.lang.Class propertyType,
java.lang.Class genericType,
EventAdapterService eventAdapterService)
Create a fragment event type. |
static EventBean[] |
denaturalize(EventBean[] naturals)
|
static EventBean[] |
flatten(java.util.ArrayDeque<EventBean[]> eventVector)
Flatten the vector of arrays to an array. |
static UniformPair<java.util.Set<MultiKey<EventBean>>> |
flattenBatchJoin(java.util.List<UniformPair<java.util.Set<MultiKey<EventBean>>>> joinPostings)
Flattens a list of pairs of join result sets. |
static UniformPair<EventBean[]> |
flattenBatchStream(java.util.List<UniformPair<EventBean[]>> updateVector)
Flatten the vector of arrays to an array. |
static UniformPair<EventBean[]> |
flattenList(java.util.ArrayDeque<UniformPair<EventBean[]>> eventVector)
Flatten the vector of arrays to an array. |
static EventPropertyGetter |
getAssertPropertyGetter(EventType[] eventTypes,
int keyStreamNum,
java.lang.String property)
|
static EventPropertyGetter |
getAssertPropertyGetter(EventType type,
java.lang.String propertyName)
|
static EventBean[] |
getDistinctByProp(java.util.ArrayDeque<EventBean> events,
EventBeanReader reader)
Returns the distinct events by properties. |
static EventBean[] |
getDistinctByProp(EventBean[] events,
EventBeanReader reader)
Returns the distinct events by properties. |
static MultiKeyUntyped |
getMultiKey(EventBean[] eventsPerStream,
ExprEvaluator[] evaluators,
ExprEvaluatorContext context,
java.lang.Class[] coercionTypes)
|
static MultiKeyUntyped |
getMultiKey(EventBean theEvent,
EventPropertyGetter[] propertyGetters)
Returns Multikey instance for given event and getters. |
static MultiKeyUntyped |
getMultiKey(EventBean theEvent,
EventPropertyGetter[] propertyGetters,
java.lang.Class[] coercionTypes)
|
static EventBean[] |
getNewDataNonRemoved(EventBean[] newData,
java.util.HashSet<EventBean> removedEvents)
|
static EventBean[] |
getNewDataNonRemoved(EventBean[] newData,
java.util.HashSet<EventBean> removedEvents,
EventBean[][] newEventsPerView)
|
static EventBean |
getNonemptyFirstEvent(java.util.Collection<EventBean> matchingEvents)
|
static java.lang.Object |
getNonemptyFirstEventUnderlying(java.util.Collection<EventBean> matchingEvents)
|
static java.lang.Object[] |
getPropertyArray(EventBean[] eventsPerStream,
EventPropertyGetter[] propertyGetters,
int[] streamNums)
|
static java.lang.Object[] |
getPropertyArray(EventBean theEvent,
EventPropertyGetter[] propertyGetters)
Returns object array containing property values of given properties, retrieved via EventPropertyGetter instances. |
static java.lang.String |
printEvent(EventBean theEvent)
Format the event and return a string representation. |
static java.lang.String |
printEvents(EventBean[] events)
|
static EventBean[] |
resizeArray(EventBean[] oldArray,
int newSize)
Resizes an array of events to a new size. |
static void |
safeArrayCopy(EventBean[] eventsPerStream,
EventBean[] eventsLambda)
|
static java.lang.String |
summarize(EventBean theEvent)
|
static java.lang.String |
summarize(EventBean[] events)
|
static void |
summarize(EventBean theEvent,
java.io.StringWriter writer)
|
static java.lang.String |
summarizeUnderlying(java.lang.Object underlying)
|
static void |
summarizeUnderlying(java.lang.Object underlying,
java.io.StringWriter writer)
|
static EventBean[] |
toArray(java.util.Collection<EventBean> eventList)
Convert list of events to array, returning null for empty or null lists. |
static java.lang.String |
toString(java.util.Map<java.lang.String,java.lang.Object> map)
Renders a map of elements, in which elements can be events or event arrays interspersed with other objects, |
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[] allocatePerStreamShift(EventBean[] eventsPerStream)
public static java.lang.Object getNonemptyFirstEventUnderlying(java.util.Collection<EventBean> matchingEvents)
public static EventBean getNonemptyFirstEvent(java.util.Collection<EventBean> matchingEvents)
public static EventPropertyGetter getAssertPropertyGetter(EventType type, java.lang.String propertyName)
public static EventPropertyGetter getAssertPropertyGetter(EventType[] eventTypes, int keyStreamNum, java.lang.String property)
public static EventBean[] resizeArray(EventBean[] oldArray, int newSize)
Returns the same array reference if the size is the same.
oldArray
- array to resizenewSize
- new array size
public static UniformPair<EventBean[]> flattenList(java.util.ArrayDeque<UniformPair<EventBean[]>> eventVector)
eventVector
- vector
public static EventBean[] flatten(java.util.ArrayDeque<EventBean[]> eventVector)
eventVector
- vector
public static UniformPair<EventBean[]> flattenBatchStream(java.util.List<UniformPair<EventBean[]>> updateVector)
updateVector
- is a list of updates of old and new events
protected static EventBean[] append(EventBean[] source, EventBean[] append)
source
- arrayappend
- array
public static EventBean[] toArray(java.util.Collection<EventBean> eventList)
eventList
- is a list of events to convert
public static java.lang.Object[] getPropertyArray(EventBean theEvent, EventPropertyGetter[] propertyGetters)
theEvent
- - event to get property values frompropertyGetters
- - getters to use for getting property values
public static java.lang.Object[] getPropertyArray(EventBean[] eventsPerStream, EventPropertyGetter[] propertyGetters, int[] streamNums)
public static MultiKeyUntyped getMultiKey(EventBean theEvent, EventPropertyGetter[] propertyGetters)
theEvent
- - event to get property values frompropertyGetters
- - getters for access to properties
public static MultiKeyUntyped getMultiKey(EventBean theEvent, EventPropertyGetter[] propertyGetters, java.lang.Class[] coercionTypes)
public static MultiKeyUntyped getMultiKey(EventBean[] eventsPerStream, ExprEvaluator[] evaluators, ExprEvaluatorContext context, java.lang.Class[] coercionTypes)
public static java.lang.Object coerce(java.lang.Object target, java.lang.Class coercionType)
public static java.lang.String printEvent(EventBean theEvent)
theEvent
- is the event to format.
public static java.lang.String printEvents(EventBean[] events)
public static void appendEvent(java.io.StringWriter writer, EventBean theEvent)
public static UniformPair<java.util.Set<MultiKey<EventBean>>> flattenBatchJoin(java.util.List<UniformPair<java.util.Set<MultiKey<EventBean>>>> joinPostings)
joinPostings
- is the list
public static EventBean[] addToArray(EventBean[] array, EventBean eventToAdd)
array
- to expandeventToAdd
- element to add
public static EventBean[] addToArray(EventBean[] array, java.util.Collection<EventBean> eventsToAdd)
array
- to expandeventsToAdd
- elements to add
public static FragmentEventType createNativeFragmentType(java.lang.Class propertyType, java.lang.Class genericType, EventAdapterService eventAdapterService)
propertyType
- property return typegenericType
- property generic type parameter, or null if noneeventAdapterService
- for event types
public static EventBean[] getDistinctByProp(java.util.ArrayDeque<EventBean> events, EventBeanReader reader)
events
- to inspectreader
- for retrieving properties
public static EventBean[] getDistinctByProp(EventBean[] events, EventBeanReader reader)
events
- to inspectreader
- for retrieving properties
public static EventBean[] denaturalize(EventBean[] naturals)
public static boolean compareReferences(EventBean[] reference, EventBean[] eventsPerStream)
public static java.lang.String summarize(EventBean theEvent)
public static void summarize(EventBean theEvent, java.io.StringWriter writer)
public static java.lang.String summarizeUnderlying(java.lang.Object underlying)
public static void summarizeUnderlying(java.lang.Object underlying, java.io.StringWriter writer)
public static java.lang.String summarize(EventBean[] events)
public static void safeArrayCopy(EventBean[] eventsPerStream, EventBean[] eventsLambda)
public static EventBean[] getNewDataNonRemoved(EventBean[] newData, java.util.HashSet<EventBean> removedEvents)
public static EventBean[] getNewDataNonRemoved(EventBean[] newData, java.util.HashSet<EventBean> removedEvents, EventBean[][] newEventsPerView)
public static java.lang.String toString(java.util.Map<java.lang.String,java.lang.Object> map)
map
- to render
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |