/** * Ctor. * * @param typeName is the event type name * @param eventType is the event type of the wrapped events * @param properties is the additional properties this wrapper adds * @param metadata event type metadata * @param eventAdapterService is the service for resolving unknown wrapped types */ public WrapperEventType( EventTypeMetadata metadata, String typeName, int eventTypeId, EventType eventType, Map<String, Object> properties, EventAdapterService eventAdapterService) { checkForRepeatedPropertyNames(eventType, properties); this.metadata = metadata; this.underlyingEventType = eventType; EventTypeMetadata metadataMapType = EventTypeMetadata.createAnonymous(typeName); this.underlyingMapType = new MapEventType( metadataMapType, typeName, 0, eventAdapterService, properties, null, null, null); this.isNoMapProperties = properties.isEmpty(); this.eventAdapterService = eventAdapterService; this.eventTypeId = eventTypeId; propertyGetterCache = new HashMap<String, EventPropertyGetter>(); updatePropertySet(); if (metadata.getTypeClass() == EventTypeMetadata.TypeClass.NAMED_WINDOW) { startTimestampPropertyName = eventType.getStartTimestampPropertyName(); endTimestampPropertyName = eventType.getEndTimestampPropertyName(); EventTypeUtility.validateTimestampProperties( this, startTimestampPropertyName, endTimestampPropertyName); } }
public String getName() { return metadata.getPublicName(); }