|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.vaevent.PropertyUtility
public class PropertyUtility
Utility for handling properties for the purpose of merging and versioning by revision event types.
Constructor Summary | |
---|---|
PropertyUtility()
|
Method Summary | |
---|---|
static PropertyGroupDesc[] |
analyzeGroups(String[] allProperties,
EventType[] deltaEventTypes,
String[] aliases)
Analyze multiple event types and determine common property sets that form property groups. |
protected static String[] |
copyAndSort(String[] input)
Copy an sort the input array. |
protected static EventPropertyGetter[] |
getGetters(EventType eventType,
String[] propertyNames)
Return getters for property names. |
static Map<String,int[]> |
getGroupsPerProperty(PropertyGroupDesc[] groups)
From a list of property groups that include multiple group numbers for each property, make a map of group numbers per property. |
static MultiKeyUntyped |
getKeys(EventBean event,
EventPropertyGetter[] keyPropertyGetters)
Returns a multi-key for an event and key property getters |
static Map<EventType,RevisionTypeDesc> |
getPerType(PropertyGroupDesc[] groups,
String[] changesetProperties,
String[] keyProperties)
From a list of property groups that include contributing event types, build a map of contributing event types and their type descriptor. |
static void |
removePropNamePostfixes(String[] propertyNames)
Remove the postfixes for indexed and mapped properties that provide a clue that a property requires a index or map key parameter to return values, changing the array elements. |
protected static String[] |
uniqueExclusiveSort(String[] values,
String[] removeValues)
Remove from values all removeValues and build a unique sorted result array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyUtility()
Method Detail |
---|
public static void removePropNamePostfixes(String[] propertyNames)
propertyNames
- to remove prefix forpublic static MultiKeyUntyped getKeys(EventBean event, EventPropertyGetter[] keyPropertyGetters)
event
- to get keys forkeyPropertyGetters
- getters to use
public static Map<EventType,RevisionTypeDesc> getPerType(PropertyGroupDesc[] groups, String[] changesetProperties, String[] keyProperties)
groups
- property groupschangesetProperties
- properties that change between groupskeyProperties
- key properties
public static Map<String,int[]> getGroupsPerProperty(PropertyGroupDesc[] groups)
groups
- property groups
public static PropertyGroupDesc[] analyzeGroups(String[] allProperties, EventType[] deltaEventTypes, String[] aliases)
allProperties
- property names to look atdeltaEventTypes
- all types contributingaliases
- names of properies
protected static String[] copyAndSort(String[] input)
input
- to sort
protected static EventPropertyGetter[] getGetters(EventType eventType, String[] propertyNames)
eventType
- type to get getters frompropertyNames
- names to get
protected static String[] uniqueExclusiveSort(String[] values, String[] removeValues)
values
- to considerremoveValues
- values to remove from values
|
© 2007 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 |