Package com.espertech.esper.epl.expression

Examples of com.espertech.esper.epl.expression.ExprAggregateNode


        List<AggregationAccessorSlotPair> accessorPairs = new ArrayList<AggregationAccessorSlotPair>();
        List<AggregationStateFactory> stateFactories = new ArrayList<AggregationStateFactory>();

        for (AggregationServiceAggExpressionDesc aggregation : aggregations)
        {
            ExprAggregateNode aggregateNode = aggregation.getAggregationNode();
            if (!aggregateNode.getFactory().isAccessAggregation()) {
                continue;
            }

            AggregationStateKey providerKey = aggregateNode.getFactory().getAggregationStateKey(false);
            AggregationAccessor accessor = aggregateNode.getFactory().getAccessor();

            Integer slot = accessProviderSlots.get(providerKey);
            if (slot == null) {
                accessProviderSlots.put(providerKey, currentSlot);
                slot = currentSlot++;
                AggregationStateFactory providerFactory = aggregateNode.getFactory().getAggregationStateFactory(false);
                stateFactories.add(providerFactory);
            }

            accessorPairs.add(new AggregationAccessorSlotPair(slot, accessor));
        }
View Full Code Here

TOP

Related Classes of com.espertech.esper.epl.expression.ExprAggregateNode

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.