Package com.espertech.esper.event.map

Examples of com.espertech.esper.event.map.MapEventBean


        return EventAdapterServiceHelper.adapterForType(event, eventType, this);
    }

    public final EventBean adaptorForTypedMap(Map<String, Object> properties, EventType eventType)
    {
        return new MapEventBean(properties, eventType);
    }
View Full Code Here


        }
        if (eventType instanceof ObjectArrayEventType) {
            return new ObjectArrayEventBean(null, eventType);
        }
        if (eventType instanceof MapEventType) {
            return new MapEventBean(null, eventType);
        }
        if (eventType instanceof BaseXMLEventType) {
            return new XMLEventBean(null, eventType);
        }
        throw new EventAdapterException("Event type '" + eventType.getName() + "' is not an engine-native event type");
View Full Code Here

        public EventBeanAdapterFactoryMap(EventType eventType) {
            this.eventType = eventType;
        }

        public EventBean makeAdapter(Object underlying) {
            return new MapEventBean((Map<String, Object>) underlying, eventType);
        }
View Full Code Here

            for (Map.Entry<String, Pair<EventType, String>> entry : arrayEventTypes.entrySet())
            {
                EventBean[] eventArray = (EventBean[]) events.getMatchingEventAsObjectByTag(entry.getKey());
                HashMap map = new HashMap();
                map.put(entry.getKey(), eventArray);
                EventBean theEvent = new MapEventBean(map, null);
                eventsPerStream[count++] = theEvent;
            }
        }
        return eventsPerStream;
    }
View Full Code Here

        return EventAdapterServiceHelper.adapterForType(theEvent, eventType, this);
    }

    public final EventBean adapterForTypedMap(Map<String, Object> properties, EventType eventType)
    {
        return new MapEventBean(properties, eventType);
    }
View Full Code Here

        return EventAdapterServiceHelper.adapterForType(theEvent, eventType, this);
    }

    public final EventBean adapterForTypedMap(Map<String, Object> properties, EventType eventType)
    {
        return new MapEventBean(properties, eventType);
    }
View Full Code Here

        }
        if (eventType instanceof ObjectArrayEventType) {
            return new ObjectArrayEventBean(null, eventType);
        }
        if (eventType instanceof MapEventType) {
            return new MapEventBean(null, eventType);
        }
        if (eventType instanceof BaseXMLEventType) {
            return new XMLEventBean(null, eventType);
        }
        throw new EventAdapterException("Event type '" + eventType.getName() + "' is not an engine-native event type");
View Full Code Here

        public EventBeanAdapterFactoryMap(EventType eventType) {
            this.eventType = eventType;
        }

        public EventBean makeAdapter(Object underlying) {
            return new MapEventBean((Map<String, Object>) underlying, eventType);
        }
View Full Code Here

        builtinTypeDef.put(ExpressionViewUtil.OLDEST_TIMESTAMP, Long.class);
        builtinTypeDef.put(ExpressionViewUtil.NEWEST_TIMESTAMP, Long.class);
        builtinTypeDef.put(ExpressionViewUtil.EXPIRED_COUNT, Integer.class);
        builtinTypeDef.put(ExpressionViewUtil.VIEW_REFERENCE, Object.class);
        EventType builtinMapType = statementContext.getEventAdapterService().createAnonymousMapType(statementContext.getStatementId() + "_exprview", builtinTypeDef);
        builtinMapBean = new MapEventBean(new HashMap<String, Object>(), builtinMapType);
        StreamTypeService streamTypeService = new StreamTypeServiceImpl(new EventType[] {eventType, builtinMapType}, new String[2], new boolean[2], statementContext.getEngineURI(), false);

        // validate expression
        expiryExpression = ViewFactorySupport.validateExpr(statementContext, expiryExpression, streamTypeService, 0);
View Full Code Here

TOP

Related Classes of com.espertech.esper.event.map.MapEventBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.