Examples of ExprChainedSpec


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

            int count = 0;
            for (int i = 0; i < detailParent.getChildCount(); i++) {
                Tree hashItemParent = detailParent.getChild(i);
                if (hashItemParent.getType() == EsperEPL2Ast.COALESCE) {
                    count++;
                    ExprChainedSpec func = ASTLibHelper.getLibFunctionChainSpec(hashItemParent.getChild(0), astExprNodeMap);
                    filterSpec = ASTExprHelper.walkFilterSpec(hashItemParent.getChild(1), propertyEvalSpec, astExprNodeMap);
                    propertyEvalSpec = null;
                    rawSpecs.add(new ContextDetailHashItem(func, filterSpec));
                }
            }
View Full Code Here

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

            int count = 0;
            for (int i = 0; i < detailParent.getChildCount(); i++) {
                Tree hashItemParent = detailParent.getChild(i);
                if (hashItemParent.getType() == EsperEPL2Ast.COALESCE) {
                    count++;
                    ExprChainedSpec func = ASTLibHelper.getLibFunctionChainSpec(hashItemParent.getChild(0), astExprNodeMap);
                    filterSpec = ASTExprHelper.walkFilterSpec(hashItemParent.getChild(1), propertyEvalSpec, astExprNodeMap);
                    propertyEvalSpec = null;
                    rawSpecs.add(new ContextDetailHashItem(func, filterSpec));
                }
            }
View Full Code Here

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

        // hash
        else if (ctx.COALESCE() != null){
            List<EsperEPL2GrammarParser.CreateContextCoalesceItemContext> coalesces = ctx.createContextCoalesceItem();
            List<ContextDetailHashItem> rawSpecs = new ArrayList<ContextDetailHashItem>(coalesces.size());
            for (EsperEPL2GrammarParser.CreateContextCoalesceItemContext coalesce : coalesces) {
                ExprChainedSpec func = ASTLibFunctionHelper.getLibFunctionChainSpec(coalesce.libFunctionNoClass(), astExprNodeMap);
                filterSpec = ASTFilterSpecHelper.walkFilterSpec(coalesce.eventFilterExpression(), propertyEvalSpec, astExprNodeMap);
                propertyEvalSpec = null;
                rawSpecs.add(new ContextDetailHashItem(func, filterSpec));
            }
View Full Code Here

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

        String methodName = ASTConstantHelper.removeTicks(libFunctionParent.getChild(count).getText());
        count++;

        List<ExprNode> parameters = getExprNodesLibFunc(count, libFunctionParent, astExprNodeMap);
        boolean isProperty = libFunctionParent.getChildCount() > 0 && libFunctionParent.getChild(libFunctionParent.getChildCount() - 1).getType() != EsperEPL2Ast.LPAREN;
        return new ExprChainedSpec(methodName, parameters, isProperty);
    }
View Full Code Here

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

            int count = 0;
            for (int i = 0; i < detailParent.getChildCount(); i++) {
                Tree hashItemParent = detailParent.getChild(i);
                if (hashItemParent.getType() == EsperEPL2Ast.COALESCE) {
                    count++;
                    ExprChainedSpec func = ASTLibHelper.getLibFunctionChainSpec(hashItemParent.getChild(0), astExprNodeMap);
                    filterSpec = ASTExprHelper.walkFilterSpec(hashItemParent.getChild(1), propertyEvalSpec, astExprNodeMap);
                    propertyEvalSpec = null;
                    rawSpecs.add(new ContextDetailHashItem(func, filterSpec));
                }
            }
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.