Examples of EventBean


Examples of com.espertech.esper.client.EventBean

        List<EventBean> outgoingEvents = new ArrayList<EventBean>();
        List<Object> orderKeys = new ArrayList<Object>();
        Set<Object> priorSeenGroups = new HashSet<Object>();

        for (;parentIter.hasNext();) {
            EventBean candidate = parentIter.next();
            eventsPerStream[0] = candidate;

            Object groupKey = generateGroupKey(eventsPerStream, true);
            aggregationService.setCurrentAccess(groupKey, agentInstanceContext.getAgentInstanceId());
View Full Code Here

Examples of com.espertech.esper.client.EventBean

    public EventBean next()
    {
        if (nextResult != null)
        {
            EventBean result = nextResult;
            nextResult = null;
            return result;
        }
        findNext();
        if (nextResult != null)
        {
            EventBean result = nextResult;
            nextResult = null;
            return result;
        }
        throw new NoSuchElementException();
    }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

    private void findNext()
    {
        while (sourceIterator.hasNext())
        {
            EventBean candidate = sourceIterator.next();
            eventsPerStream[0] = candidate;

            Object groupKey = resultSetProcessor.generateGroupKey(eventsPerStream, true);
            aggregationService.setCurrentAccess(groupKey, exprEvaluatorContext.getAgentInstanceId());
View Full Code Here

Examples of com.espertech.esper.client.EventBean

        }

        @Override
        public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) {
            if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qExprTypeof();}
            EventBean theEvent = eventsPerStream[streamNum];
            if (theEvent == null) {
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(null);}
                return null;
            }
            if (theEvent instanceof VariantEvent) {
                String typeName = ((VariantEvent) theEvent).getUnderlyingEventBean().getEventType().getName();
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(typeName);}
                return typeName;
            }
            if (InstrumentationHelper.ENABLED) {
                String typeName = theEvent.getEventType().getName();
                InstrumentationHelper.get().aExprTypeof(typeName);
                return typeName;
            }
            return theEvent.getEventType().getName();
        }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

        }

        @Override
        public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) {
            if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qExprTypeof();}
            EventBean theEvent = eventsPerStream[streamId];
            if (theEvent == null) {
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(null);}
                return null;
            }
            Object fragment = getter.getFragment(theEvent);
            if (fragment == null) {
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(null);}
                return null;
            }
            if (fragment instanceof EventBean) {
                EventBean bean = ((EventBean) fragment);
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(bean.getEventType().getName());}
                return bean.getEventType().getName();
            }
            if (fragment.getClass().isArray()) {
                String type = fragmentType + "[]";
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().aExprTypeof(type);}
                return type;
View Full Code Here

Examples of com.espertech.esper.client.EventBean

     * @param eventsPerStream is the events for each stream
     * @return key object
     */
    protected Object getKey(EventBean[] eventsPerStream)
    {
        EventBean theEvent = eventsPerStream[keyStreamNum];
        return propertyGetter.get(theEvent);
    }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

            }
            Collection<EventBean> events = new ArrayDeque<EventBean>(groupKeys.size());
            for (Object groupKey : groupKeys) {
                parent.getSubselectAggregationService().setCurrentAccess(groupKey, context.getAgentInstanceId());
                Map<String, Object> row = parent.evaluateRow(null, true, context);
                EventBean event = parent.subselectMultirowType.getEventAdapterService().adapterForTypedMap(row, parent.subselectMultirowType.getEventType());
                events.add(event);
            }
            return events;
        }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

            Collection<EventBean> events = new ArrayDeque<EventBean>(matchingEvents.size());
            EventBean[] eventsPerStreamEval = EventBeanUtility.allocatePerStreamShift(eventsPerStream);
            for (EventBean subselectEvent : matchingEvents) {
                eventsPerStreamEval[0] = subselectEvent;
                Map<String, Object> row = parent.evaluateRow(eventsPerStreamEval, true, context);
                EventBean event = parent.subselectMultirowType.getEventAdapterService().adapterForTypedMap(row, parent.subselectMultirowType.getEventType());
                events.add(event);
            }
            return events;
        }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

    private static class SubqueryEvalStrategyFilteredUnselected implements SubqueryEvalStrategy {

        // Filter and no-select
        public Object evaluate(EventBean[] eventsPerStream, boolean newData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext, ExprSubselectRowNode parent) {
            EventBean[] eventsZeroBased = EventBeanUtility.allocatePerStreamShift(eventsPerStream);
            EventBean subSelectResult = ExprSubselectRowNodeUtility.evaluateFilterExpectSingleMatch(eventsZeroBased, newData, matchingEvents, exprEvaluatorContext, parent);
            if (subSelectResult == null) {
                return null;
            }
            return subSelectResult.getUnderlying();
        }
View Full Code Here

Examples of com.espertech.esper.client.EventBean

    private static class SubqueryEvalStrategyFilteredSelected implements SubqueryEvalStrategy {

        // Filter and Select
        public Object evaluate(EventBean[] eventsPerStream, boolean newData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext, ExprSubselectRowNode parent) {
            EventBean[] eventsZeroBased = EventBeanUtility.allocatePerStreamShift(eventsPerStream);
            EventBean subSelectResult = ExprSubselectRowNodeUtility.evaluateFilterExpectSingleMatch(eventsZeroBased, newData, matchingEvents, exprEvaluatorContext, parent);
            if (subSelectResult == null) {
                return null;
            }

            eventsZeroBased[0] = subSelectResult;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.