Examples of IFunctionInfo


Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

     * Search pattern 1: assign [function-call: count(function-call: treat($$))]
     * Search pattern 2: $$ for aggregate [function-call: sequence()]
     */
    @Override
    public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context) throws AlgebricksException {
        IFunctionInfo aggregateInfo;
        AbstractFunctionCallExpression finalFunctionCall;
        Mutable<ILogicalOperator> nextOperatorRef;

        // Check if assign is for aggregate function.
        AbstractLogicalOperator op = (AbstractLogicalOperator) opRef.getValue();
View Full Code Here

Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

                continue;
            }
            AbstractFunctionCallExpression functionCall = (AbstractFunctionCallExpression) argFirst;
            if (ALGEBRICKS_MAP.containsKey(functionCall.getFunctionIdentifier())) {
                FunctionIdentifier algebricksFid = ALGEBRICKS_MAP.get(functionCall.getFunctionIdentifier());
                IFunctionInfo algebricksFunction = context.getMetadataProvider().lookupFunction(algebricksFid);
                functionCall.setFunctionInfo(algebricksFunction);
                searchM.setValue(argFirst);
                modified = true;
            }
        }
View Full Code Here

Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

        return null;
    }

    @Override
    public IFunctionInfo lookupFunction(final FunctionIdentifier fid) {
        return new IFunctionInfo() {
            @Override
            public FunctionIdentifier getFunctionIdentifier() {
                return fid;
            }
View Full Code Here

Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

    @Override
    public String visitAggregateFunctionCallExpression(AggregateFunctionCallExpression expr, Integer indent)
            throws AlgebricksException {
        if (expr.isTwoStep()) {
            IFunctionInfo step1Agg = expr.getStepOneAggregate();
            String step1 = (step1Agg != null ? step1Agg.getFunctionIdentifier().toString() : "null");
            IFunctionInfo step2Agg = expr.getStepTwoAggregate();
            String step2 = (step2Agg != null ? step2Agg.getFunctionIdentifier().toString() : "null");
            StringBuilder sb = new StringBuilder();
            sb.append("function-call: [" + step1 + "|" + step2 + "], Args:");
            appendArguments(sb, expr.getArguments(), indent + 2);
            return sb.toString();
        } else if (expr.getFunctionInfo() == null) {
View Full Code Here

Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

* @author prestoncarman
*/
public class ConsolidateAssignAggregateRule extends AbstractVXQueryAggregateRule {
    @Override
    public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context) throws AlgebricksException {
        IFunctionInfo aggregateInfo;
        AbstractFunctionCallExpression finalFunctionCall;
        Mutable<ILogicalExpression> mutableVariableExpresion;

        // Check if assign is for aggregate function.
        AbstractLogicalOperator op = (AbstractLogicalOperator) opRef.getValue();
View Full Code Here

Examples of edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo

        return null;
    }

    @Override
    public IFunctionInfo lookupFunction(final FunctionIdentifier fid) {
        return new IFunctionInfo() {
            @Override
            public FunctionIdentifier getFunctionIdentifier() {
                return fid;
            }
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.