Package org.apache.pig.impl.plan

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


    }
   
    @Override
    public void visit( EqualExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new EqualToExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here


    }
   
    @Override
    public void visit( NotEqualExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new NotEqualToExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here

    }
   
    @Override
    public void visit( GreaterThanExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new GreaterThanExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here

    }
   
    @Override
    public void visit( GreaterThanEqualExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new GTOrEqualToExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here

    }
   
    @Override
    public void visit( LessThanExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new LessThanExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here

   
   
    @Override
    public void visit( LessThanEqualExpression op ) throws FrontendException {
       
        BinaryComparisonOperator exprOp = new LTOrEqualToExpr(new OperatorKey(
                DEFAULT_SCOPE, nodeGen.getNextNodeId(DEFAULT_SCOPE)));
       
        attachBinaryComparisonOperator(op, exprOp);
    }
View Full Code Here

    public void visit(ProjectExpression op) throws FrontendException {
        POProject exprOp;
      
        if(op.getAttachedRelationalOp() instanceof LOGenerate && op.getPlan().getSuccessors(op)==null &&
            !(op.findReferent() instanceof LOInnerLoad)) {
            exprOp = new PORelationToExprProject(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
         } else {
            exprOp = new POProject(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
        }
       
        exprOp.setResultType(op.getType());
        exprOp.setColumn(op.getColNum());
View Full Code Here

        currentPlan.add(exprOp);       
    }
   
    @Override
    public void visit( MapLookupExpression op ) throws FrontendException {
        ExpressionOperator physOp = new POMapLookUp(new OperatorKey(DEFAULT_SCOPE,
                nodeGen.getNextNodeId(DEFAULT_SCOPE)));
        ((POMapLookUp)physOp).setLookUpKey(op.getLookupKey() );
        physOp.setResultType(op.getType());
        physOp.setAlias(op.getFieldSchema().alias);
        currentPlan.add(physOp);
View Full Code Here

   
    @Override
    public void visit(org.apache.pig.newplan.logical.expression.ConstantExpression op) throws FrontendException {
       
//        System.err.println("Entering Constant");
        ConstantExpression ce = new ConstantExpression(new OperatorKey(DEFAULT_SCOPE,
                nodeGen.getNextNodeId(DEFAULT_SCOPE)));
        // We dont have aliases in ExpressionOperators
        // ce.setAlias(op.getAlias());
        ce.setValue(op.getValue());
        ce.setResultType(op.getType());
View Full Code Here

//        System.err.println("Exiting Constant");
    }
   
    @Override
    public void visit( CastExpression op ) throws FrontendException {
        POCast pCast = new POCast(new OperatorKey(DEFAULT_SCOPE, nodeGen
                .getNextNodeId(DEFAULT_SCOPE)));
//        physOp.setAlias(op.getAlias());
        currentPlan.add(pCast);

        logToPhyMap.put(op, pCast);
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.