public class EventTypeUtility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EventTypeUtility.TimestampPropertyDesc |
Constructor and Description |
---|
EventTypeUtility() |
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
buildType(java.util.List<ColumnDesc> columns,
EventAdapterService eventAdapterService,
java.util.Set<java.lang.String> copyFrom,
EngineImportService engineImportService) |
static java.util.Map<java.lang.String,java.lang.Object> |
compileMapTypeProperties(java.util.Map<java.lang.String,java.lang.Object> typing,
EventAdapterService eventAdapterService)
Determine among the Map-type properties which properties are Bean-type event type names,
rewrites these as Class-type instead so that they are configured as native property and do not require wrapping,
but may require unwrapping.
|
static EventType |
createNonVariantType(boolean isAnonymous,
CreateSchemaDesc spec,
java.lang.annotation.Annotation[] annotations,
ConfigurationInformation configSnapshot,
EventAdapterService eventAdapterService,
EngineImportService engineImportService) |
static WriteablePropertyDescriptor |
findWritable(java.lang.String propertyName,
java.util.Set<WriteablePropertyDescriptor> writables) |
static EventPropertyGetter |
getNestableGetter(java.lang.String propertyName,
java.util.Map<java.lang.String,PropertySetDescriptorItem> propertyGetters,
java.util.Map<java.lang.String,EventPropertyGetter> propertyGetterCache,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory) |
static PropertySetDescriptor |
getNestableProperties(java.util.Map<java.lang.String,java.lang.Object> propertiesToAdd,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory,
EventType[] optionalSuperTypes) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
java.util.Deque<Property> stack) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
java.lang.String propertyName) |
static java.lang.Class |
getNestablePropertyType(java.lang.String propertyName,
java.util.Map<java.lang.String,PropertySetDescriptorItem> simplePropertyTypes,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService) |
static java.lang.String |
getPropertyRemoveArray(java.lang.String name)
Returns the property name without the array type extension, if present.
|
static boolean |
isPropertyArray(java.lang.String name)
Returns true if the name indicates that the type is an array type.
|
static boolean |
isTypeOrSubTypeOf(EventType candidate,
EventType superType) |
static EventTypeUtility.TimestampPropertyDesc |
validatedDetermineTimestampProps(EventType type,
java.lang.String startProposed,
java.lang.String endProposed,
EventType[] superTypes) |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
validateObjectArrayDef(java.lang.String[] propertyNames,
java.lang.Object[] propertyTypes) |
static void |
validateTimestampProperties(EventType eventType,
java.lang.String startTimestampProperty,
java.lang.String endTimestampProperty) |
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, java.lang.String propertyName)
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, java.util.Deque<Property> stack)
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> buildType(java.util.List<ColumnDesc> columns, EventAdapterService eventAdapterService, java.util.Set<java.lang.String> copyFrom, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static void validateTimestampProperties(EventType eventType, java.lang.String startTimestampProperty, java.lang.String endTimestampProperty) throws ConfigurationException
ConfigurationException
public static java.util.Map<java.lang.String,java.lang.Object> compileMapTypeProperties(java.util.Map<java.lang.String,java.lang.Object> typing, EventAdapterService eventAdapterService)
typing
- properties of map typeeventAdapterService
- event adapter servicepublic static boolean isPropertyArray(java.lang.String name)
name
- the property namepublic static java.lang.String getPropertyRemoveArray(java.lang.String name)
name
- property namepublic static PropertySetDescriptor getNestableProperties(java.util.Map<java.lang.String,java.lang.Object> propertiesToAdd, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory, EventType[] optionalSuperTypes) throws EPException
EPException
public static java.lang.Class getNestablePropertyType(java.lang.String propertyName, java.util.Map<java.lang.String,PropertySetDescriptorItem> simplePropertyTypes, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService)
public static EventPropertyGetter getNestableGetter(java.lang.String propertyName, java.util.Map<java.lang.String,PropertySetDescriptorItem> propertyGetters, java.util.Map<java.lang.String,EventPropertyGetter> propertyGetterCache, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory)
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> validateObjectArrayDef(java.lang.String[] propertyNames, java.lang.Object[] propertyTypes)
public static EventType createNonVariantType(boolean isAnonymous, CreateSchemaDesc spec, java.lang.annotation.Annotation[] annotations, ConfigurationInformation configSnapshot, EventAdapterService eventAdapterService, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static WriteablePropertyDescriptor findWritable(java.lang.String propertyName, java.util.Set<WriteablePropertyDescriptor> writables)
public static EventTypeUtility.TimestampPropertyDesc validatedDetermineTimestampProps(EventType type, java.lang.String startProposed, java.lang.String endProposed, EventType[] superTypes) throws EPException
EPException