Package org.apache.pig.impl.plan

Examples of org.apache.pig.impl.plan.OperatorKey


    }
   
    @Override
    public void visit( NotExpression op ) throws FrontendException {
       
        PONot pNot = new PONot(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
//        physOp.setAlias(op.getAlias());
        currentPlan.add(pNot);

        logToPhyMap.put(op, pNot);
View Full Code Here


        }
    }
   
    @Override
    public void visit( IsNullExpression op ) throws FrontendException {
        POIsNull pIsNull = new POIsNull(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
//        physOp.setAlias(op.getAlias());
        currentPlan.add(pIsNull);

        logToPhyMap.put(op, pIsNull);
View Full Code Here

        }
    }

    @Override
    public void visit( NegativeExpression op ) throws FrontendException {
        PONegative pNegative = new PONegative(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
//        physOp.setAlias(op.getAlias());
        currentPlan.add(pNegative);

        logToPhyMap.put(op, pNegative);
View Full Code Here

        }
    }
   
    @Override
    public void visit( AddExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new Add(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
    }
View Full Code Here

        attachBinaryExpressionOperator(op, exprOp);
    }
   
    @Override
    public void visit( RegexExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new PORegexp(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
       
        List<Operator> successors = op.getPlan().getSuccessors(op);
        if (successors.get(1) instanceof org.apache.pig.newplan.logical.expression.ConstantExpression) {
View Full Code Here

        }
    }
   
    @Override
    public void visit( SubtractExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new Subtract(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
    }
View Full Code Here

        attachBinaryExpressionOperator(op, exprOp);
    }
   
    @Override
    public void visit( MultiplyExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new Multiply(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
    }
View Full Code Here

        attachBinaryExpressionOperator(op, exprOp);
    }
   
    @Override
    public void visit( DivideExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new Divide(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
    }
View Full Code Here

        attachBinaryExpressionOperator(op, exprOp);
    }
   
    @Override
    public void visit( ModExpression op ) throws FrontendException {       
        BinaryExpressionOperator exprOp = new Mod(new OperatorKey(DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));       
       
        attachBinaryExpressionOperator(op, exprOp);
    }
View Full Code Here

    }
   
    @Override
    public void visit( BinCondExpression op ) throws FrontendException {
       
        POBinCond exprOp = new POBinCond( new OperatorKey(DEFAULT_SCOPE,
                nodeGen.getNextNodeId(DEFAULT_SCOPE)) );
       
        exprOp.setResultType(op.getType());
        exprOp.setCond((ExpressionOperator) logToPhyMap.get(op.getCondition()));
        exprOp.setLhs((ExpressionOperator) logToPhyMap.get(op.getLhs()));
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.plan.OperatorKey

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.