public void Write(Object[] values, EventBean theEvent) { DecoratingEventBean wrappedEvent = (DecoratingEventBean)theEvent; EventBean eventWrapped = wrappedEvent.UnderlyingEvent; _undWriter.Write(values, eventWrapped); }
public EventBean Copy(EventBean theEvent) { DecoratingEventBean decorated = (DecoratingEventBean)theEvent; EventBean decoratedUnderlying = decorated.UnderlyingEvent; IDictionary <String, Object> copiedMap = new Dictionary <String, Object>(decorated.DecoratingProperties); return(_eventAdapterService.AdapterForTypedWrapper(decoratedUnderlying, copiedMap, _wrapperEventType)); }
public void Write(Object[] values, EventBean theEvent) { DecoratingEventBean mappedEvent = (DecoratingEventBean)theEvent; IDictionary <String, Object> map = mappedEvent.DecoratingProperties; for (int i = 0; i < _properties.Length; i++) { map.Put(_properties[i], values[i]); } }
public EventBean Copy(EventBean theEvent) { DecoratingEventBean decorated = (DecoratingEventBean)theEvent; EventBean decoratedUnderlying = decorated.UnderlyingEvent; EventBean copiedUnderlying = _underlyingCopyMethod.Copy(decoratedUnderlying); if (copiedUnderlying == null) { return(null); } return(_eventAdapterService.AdapterForTypedWrapper(copiedUnderlying, decorated.DecoratingProperties, _wrapperEventType)); }
/// <summary> /// NOTE: Code-generation-invoked method, method name and parameter order matters /// </summary> /// <param name="eventsPerStream">events</param> /// <param name="numEvaluators">num evals</param> /// <param name="props">props</param> /// <param name="variantEventType">variant</param> /// <returns>bean</returns> public static EventBean SelectExprInsertWildcardSSWrapRevision( EventBean[] eventsPerStream, int numEvaluators, IDictionary<string, object> props, VariantEventType variantEventType) { DecoratingEventBean wrapper = (DecoratingEventBean) eventsPerStream[0]; if (wrapper != null) { IDictionary<string, object> map = wrapper.DecoratingProperties; if ((numEvaluators == 0) && (!map.IsEmpty())) { // no action } else { props.PutAll(map); } } EventBean theEvent = eventsPerStream[0]; return variantEventType.GetValueAddEventBean(theEvent); }
public EventBean AdapterForTypedWrapper( EventBean decoratedUnderlying, IDictionary<string, object> map, EventType wrapperEventType) { if (decoratedUnderlying is DecoratingEventBean) { DecoratingEventBean wrapper = (DecoratingEventBean) decoratedUnderlying; if (!wrapper.DecoratingProperties.IsEmpty()) { if (map.IsEmpty()) { map = new Dictionary<string, object>(); } map.PutAll(wrapper.DecoratingProperties); } return new WrapperEventBean(wrapper.UnderlyingEvent, map, wrapperEventType); } else { return new WrapperEventBean(decoratedUnderlying, map, wrapperEventType); } }