Package com.espertech.esper.event

Examples of com.espertech.esper.event.MappedEventBean


     * @param values to write
     * @param theEvent to write to
     */
    public void write(Object[] values, EventBean theEvent)
    {
        MappedEventBean mappedEvent = (MappedEventBean) theEvent;
        Map<String, Object> map = mappedEvent.getProperties();

        for (int i = 0; i < properties.length; i++)
        {
            map.put(properties[i], values[i]);
        }
View Full Code Here


     * @param values to write
     * @param theEvent to write to
     */
    public void write(Object[] values, EventBean theEvent)
    {
        MappedEventBean mappedEvent = (MappedEventBean) theEvent;
        Map<String, Object> map = mappedEvent.getProperties();

        for (int i = 0; i < writers.length; i++)
        {
            writers[i].write(values[i], map);
        }
View Full Code Here

        this.propertyName = propertyName;
    }

    public void write(Object value, EventBean target)
    {
        MappedEventBean map = (MappedEventBean) target;
        write(value, map.getProperties());
    }
View Full Code Here

    public EventType getResultEventType() {
        return resultType;
    }

    public EventBean process(EventBean[] eventsPerStream, boolean isNewData, boolean isSynthesize, ExprEvaluatorContext exprEvaluatorContext) {
        MappedEventBean theEvent = (MappedEventBean) eventsPerStream[underlyingStreamNumber];
        return selectExprContext.getEventAdapterService().adapterForTypedMap(theEvent.getProperties(), resultType);
    }
View Full Code Here

        AgentInstanceFilterProxy proxy = new AgentInstanceFilterProxyImpl(filterAddendum);

        // build built-in context properties
        contextProperties.put(ContextPropertyEventType.PROP_CTX_NAME, contextName);
        contextProperties.put(ContextPropertyEventType.PROP_CTX_ID, contextId);
        MappedEventBean contextBean = (MappedEventBean) servicesContext.getEventAdapterService().adapterForTypedMap(contextProperties, contextDescriptor.getContextPropertyRegistry().getContextEventType());

        // activate
        StatementAgentInstanceFactoryResult result = StatementAgentInstanceUtil.start(servicesContext, statementDesc.getStatement(), false, contextId, contextBean, proxy, isRecoveringResilient);

        // save only instance data
View Full Code Here

        Map<String, Object> properties = ContextPropertyEventType.getNestedBeanBase(contextName, contextId);
        properties.put(nestedContextFactories[nestedContextFactories.length - 1].getFactoryContext().getContextName(), contextProperties);
        recursivePopulateBuiltinProps(originator, properties);
        properties.put(ContextPropertyEventType.PROP_CTX_NAME, contextName);
        properties.put(ContextPropertyEventType.PROP_CTX_ID, contextId);
        MappedEventBean contextBean = (MappedEventBean) servicesContext.getEventAdapterService().adapterForTypedMap(properties, contextDescriptor.getContextPropertyRegistry().getContextEventType());

        // activate
        StatementAgentInstanceFactoryResult result = StatementAgentInstanceUtil.start(servicesContext, statementDesc.getStatement(), false, contextId, contextBean, proxy, isRecoveringResilient);
        return new AgentInstance(result.getStopCallback(), result.getAgentInstanceContext(), result.getFinalView());
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.event.MappedEventBean

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.