Package com.espertech.esper.event

Examples of com.espertech.esper.event.ObjectArrayBackedEventBean


        this.resultEventType = resultEventType;
        this.eventAdapterService = eventAdapterService;
    }

    public EventBean process(EventBean[] eventsPerStream, boolean isNewData, boolean isSynthesize, ExprEvaluatorContext exprEvaluatorContext) {
        ObjectArrayBackedEventBean theEvent = (ObjectArrayBackedEventBean) eventsPerStream[0];
        return eventAdapterService.adapterForTypedObjectArray(theEvent.getProperties(), resultEventType);
    }
View Full Code Here


     * @param values to write
     * @param theEvent to write to
     */
    public void write(Object[] values, EventBean theEvent)
    {
        ObjectArrayBackedEventBean arrayEvent = (ObjectArrayBackedEventBean) theEvent;
        Object[] array = arrayEvent.getProperties();

        for (int i = 0; i < indexes.length; i++)
        {
            array[indexes[i]] = values[i];
        }
View Full Code Here

        this.index = index;
    }

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

     * @param values to write
     * @param theEvent to write to
     */
    public void write(Object[] values, EventBean theEvent)
    {
        ObjectArrayBackedEventBean arrayEvent = (ObjectArrayBackedEventBean) theEvent;
        Object[] arr = arrayEvent.getProperties();

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

        }
    }

    public EventBean copy(EventBean theEvent)
    {
        ObjectArrayBackedEventBean arrayBacked = (ObjectArrayBackedEventBean) theEvent;
        Object[] props = arrayBacked.getProperties();
        Object[] shallowCopy = new Object[props.length];
        System.arraycopy(props, 0, shallowCopy, 0, props.length);

        for (int index : mapIndexesToCopy) {
            Map<String, Object> innerMap = (Map<String, Object>) shallowCopy[index];
View Full Code Here

    public EventType getResultEventType() {
        return resultType;
    }

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

TOP

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

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.