Class BaseNestableEventUtil
java.lang.Object
com.espertech.esper.common.internal.event.core.BaseNestableEventUtil
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckedCastUnderlyingMap
(EventBean theEvent) static Object[]
checkedCastUnderlyingObjectArray
(EventBean theEvent) static ExprValidationException
comparePropType
(String propName, Object setOneType, boolean setOneTypeFound, Object setTwoType, String otherName) static Object
getArrayPropertyAsUnderlyingsArray
(EPTypeClass underlyingType, EventBean[] wrapper) static CodegenMethod
getArrayPropertyAsUnderlyingsArrayCodegen
(EPTypeClass underlyingType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) static Object
getArrayPropertyFragment
(EventBean[] wrapper, int index, EventPropertyGetter nestedGetter) static CodegenMethod
getArrayPropertyFragmentCodegen
(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, int index, EventPropertyGetterSPI nestedGetter) static Object
getArrayPropertyValue
(EventBean[] wrapper, int index, EventPropertyGetter nestedGetter) static CodegenMethod
getArrayPropertyValueCodegen
(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, int index, EventPropertyGetterSPI nestedGetter) static Object
getBeanArrayValue
(BeanEventPropertyGetter nestedGetter, Object value, int index) static CodegenMethod
getBeanArrayValueCodegen
(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, BeanEventPropertyGetter nestedGetter, int index) static CodegenMethod
getBeanArrayValueExistsCodegen
(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, BeanEventPropertyGetter nestedGetter, int index) static Object
getBNArrayPropertyBean
(EventBean[] wrapper, int index) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
getBNArrayPropertyUnderlying
(EventBean[] wrapper, int index) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
getBNArrayValueAtIndex
(Object value, int index) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
getBNArrayValueAtIndexWithNullCheck
(Object value, int index) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
getBNFragmentArray
(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic EventBean
getBNFragmentNonPojo
(Object fragmentUnderlying, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
getBNFragmentPojo
(Object result, BeanEventType eventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order mattersgetIndexedAndMappedProps
(String[] properties) static boolean
getMappedPropertyExists
(Object value, String key) static Object
getMappedPropertyValue
(Object value, String key) static Object
handleBNCreateFragmentMap
(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
handleBNCreateFragmentObjectArray
(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic Object
handleBNNestedValueArrayWithMapFragment
(Object value, int index, MapEventPropertyGetter getter, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventType fragmentType) static CodegenExpression
handleBNNestedValueArrayWithMapFragmentCode
(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventType fragmentType, Class generator) static Object
handleNestedValueArrayWithMap
(Object value, int index, MapEventPropertyGetter getter) static CodegenExpression
handleNestedValueArrayWithMapCode
(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) static boolean
handleNestedValueArrayWithMapExists
(Object value, int index, MapEventPropertyGetter getter) static CodegenExpression
handleNestedValueArrayWithMapExistsCode
(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) static Object
handleNestedValueArrayWithObjectArray
(Object value, int index, ObjectArrayEventPropertyGetter getter) static CodegenExpression
handleNestedValueArrayWithObjectArrayCodegen
(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) static boolean
handleNestedValueArrayWithObjectArrayExists
(Object value, int index, ObjectArrayEventPropertyGetter getter) static CodegenExpression
handleNestedValueArrayWithObjectArrayExistsCodegen
(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) static Object
handleNestedValueArrayWithObjectArrayFragment
(Object value, int index, ObjectArrayEventPropertyGetter getter, EventType fragmentType, EventBeanTypedEventFactory eventBeanTypedEventFactory) static CodegenExpression
handleNestedValueArrayWithObjectArrayFragmentCodegen
(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) static boolean
isExistsIndexedValue
(Object value, int index) static MapEventType
makeMapTypeCompileTime
(EventTypeMetadata metadata, Map<String, Object> propertyTypes, EventType[] optionalSuperTypes, Set<EventType> optionalDeepSupertypes, String startTimestampPropertyName, String endTimestampPropertyName, BeanEventTypeFactory beanEventTypeFactory, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) static ObjectArrayEventType
makeOATypeCompileTime
(EventTypeMetadata metadata, Map<String, Object> properyTypes, EventType[] optionalSuperTypes, Set<EventType> optionalDeepSupertypes, String startTimestampName, String endTimestampName, BeanEventTypeFactory beanEventTypeFactory, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) static LinkedHashMap<String,
Object> resolvePropertyTypes
(Map<String, Object> propertyTypes, EventTypeNameResolver eventTypeNameResolver)
-
Constructor Details
-
BaseNestableEventUtil
public BaseNestableEventUtil()
-
-
Method Details
-
makeMapTypeCompileTime
public static MapEventType makeMapTypeCompileTime(EventTypeMetadata metadata, Map<String, Object> propertyTypes, EventType[] optionalSuperTypes, Set<EventType> optionalDeepSupertypes, String startTimestampPropertyName, String endTimestampPropertyName, BeanEventTypeFactory beanEventTypeFactory, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) -
makeOATypeCompileTime
public static ObjectArrayEventType makeOATypeCompileTime(EventTypeMetadata metadata, Map<String, Object> properyTypes, EventType[] optionalSuperTypes, Set<EventType> optionalDeepSupertypes, String startTimestampName, String endTimestampName, BeanEventTypeFactory beanEventTypeFactory, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) -
resolvePropertyTypes
public static LinkedHashMap<String,Object> resolvePropertyTypes(Map<String, Object> propertyTypes, EventTypeNameResolver eventTypeNameResolver) -
checkedCastUnderlyingMap
public static Map<String,Object> checkedCastUnderlyingMap(EventBean theEvent) throws PropertyAccessException - Throws:
PropertyAccessException
-
checkedCastUnderlyingObjectArray
public static Object[] checkedCastUnderlyingObjectArray(EventBean theEvent) throws PropertyAccessException - Throws:
PropertyAccessException
-
getBNArrayValueAtIndex
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
value
- valueindex
- index- Returns:
- array value or null
-
getBNArrayValueAtIndexWithNullCheck
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
value
- valueindex
- index- Returns:
- array value or null
-
handleBNCreateFragmentMap
public static Object handleBNCreateFragmentMap(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
value
- valuefragmentEventType
- fragment typeeventBeanTypedEventFactory
- event adapter service- Returns:
- fragment
-
getBNFragmentPojo
public static Object getBNFragmentPojo(Object result, BeanEventType eventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
result
- resulteventType
- typeeventBeanTypedEventFactory
- event service- Returns:
- fragment
-
handleBNCreateFragmentObjectArray
public static Object handleBNCreateFragmentObjectArray(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
value
- valuefragmentEventType
- fragment typeeventBeanTypedEventFactory
- service- Returns:
- fragment
-
handleNestedValueArrayWithMap
public static Object handleNestedValueArrayWithMap(Object value, int index, MapEventPropertyGetter getter) -
handleNestedValueArrayWithMapCode
public static CodegenExpression handleNestedValueArrayWithMapCode(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) -
handleBNNestedValueArrayWithMapFragment
public static Object handleBNNestedValueArrayWithMapFragment(Object value, int index, MapEventPropertyGetter getter, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventType fragmentType) -
handleBNNestedValueArrayWithMapFragmentCode
public static CodegenExpression handleBNNestedValueArrayWithMapFragmentCode(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventType fragmentType, Class generator) -
handleNestedValueArrayWithMapExists
public static boolean handleNestedValueArrayWithMapExists(Object value, int index, MapEventPropertyGetter getter) -
handleNestedValueArrayWithMapExistsCode
public static CodegenExpression handleNestedValueArrayWithMapExistsCode(int index, MapEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) -
handleNestedValueArrayWithObjectArray
public static Object handleNestedValueArrayWithObjectArray(Object value, int index, ObjectArrayEventPropertyGetter getter) -
handleNestedValueArrayWithObjectArrayCodegen
public static CodegenExpression handleNestedValueArrayWithObjectArrayCodegen(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) -
handleNestedValueArrayWithObjectArrayExists
public static boolean handleNestedValueArrayWithObjectArrayExists(Object value, int index, ObjectArrayEventPropertyGetter getter) -
handleNestedValueArrayWithObjectArrayExistsCodegen
public static CodegenExpression handleNestedValueArrayWithObjectArrayExistsCodegen(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) -
handleNestedValueArrayWithObjectArrayFragment
public static Object handleNestedValueArrayWithObjectArrayFragment(Object value, int index, ObjectArrayEventPropertyGetter getter, EventType fragmentType, EventBeanTypedEventFactory eventBeanTypedEventFactory) -
handleNestedValueArrayWithObjectArrayFragmentCodegen
public static CodegenExpression handleNestedValueArrayWithObjectArrayFragmentCodegen(int index, ObjectArrayEventPropertyGetter getter, CodegenExpression ref, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, Class generator) -
getMappedPropertyValue
-
getMappedPropertyExists
-
getIndexedAndMappedProps
public static BaseNestableEventUtil.MapIndexedPropPair getIndexedAndMappedProps(String[] properties) -
isExistsIndexedValue
-
getBNFragmentNonPojo
public static EventBean getBNFragmentNonPojo(Object fragmentUnderlying, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
fragmentUnderlying
- fragmentfragmentEventType
- typeeventBeanTypedEventFactory
- svc- Returns:
- bean
-
getBNFragmentArray
public static Object getBNFragmentArray(Object value, EventType fragmentEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
value
- valuefragmentEventType
- fragment typeeventBeanTypedEventFactory
- svc- Returns:
- fragment
-
getBeanArrayValue
public static Object getBeanArrayValue(BeanEventPropertyGetter nestedGetter, Object value, int index) -
getBeanArrayValueCodegen
public static CodegenMethod getBeanArrayValueCodegen(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, BeanEventPropertyGetter nestedGetter, int index) -
getBeanArrayValueExistsCodegen
public static CodegenMethod getBeanArrayValueExistsCodegen(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, BeanEventPropertyGetter nestedGetter, int index) -
getArrayPropertyValue
public static Object getArrayPropertyValue(EventBean[] wrapper, int index, EventPropertyGetter nestedGetter) -
getArrayPropertyValueCodegen
public static CodegenMethod getArrayPropertyValueCodegen(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, int index, EventPropertyGetterSPI nestedGetter) -
getArrayPropertyFragment
public static Object getArrayPropertyFragment(EventBean[] wrapper, int index, EventPropertyGetter nestedGetter) -
getArrayPropertyFragmentCodegen
public static CodegenMethod getArrayPropertyFragmentCodegen(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope, int index, EventPropertyGetterSPI nestedGetter) -
getBNArrayPropertyUnderlying
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
wrapper
- beansindex
- index- Returns:
- underlying
-
getBNArrayPropertyBean
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
wrapper
- beansindex
- index- Returns:
- fragment
-
getArrayPropertyAsUnderlyingsArray
public static Object getArrayPropertyAsUnderlyingsArray(EPTypeClass underlyingType, EventBean[] wrapper) -
getArrayPropertyAsUnderlyingsArrayCodegen
public static CodegenMethod getArrayPropertyAsUnderlyingsArrayCodegen(EPTypeClass underlyingType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) -
comparePropType
public static ExprValidationException comparePropType(String propName, Object setOneType, boolean setOneTypeFound, Object setTwoType, String otherName)
-