Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.apache.pig.newplan.logical.optimizer;
 
A visitor that walks the logical plan and calls the same method on every type of node. Subclasses can extend this and implement the execute method, and this method will be called on every node in the graph.
 
 public abstract class AllSameRalationalNodesVisitor extends LogicalRelationalNodesVisitor {

    

Parameters:
plan OperatorPlan to visit
walker Walker to use to visit the plan
 
     public AllSameRalationalNodesVisitor(OperatorPlan planPlanWalker walkerthrows FrontendException {
         super(planwalker);
     }

    
Method to call on every node in the logical plan.

Parameters:
op Node that is currently being visited.
 
     abstract protected void execute(LogicalRelationalOperator opthrows FrontendException;
 
     @Override
     public void visit(LOFilter filterthrows FrontendException {
         execute(filter);
     }
 
     @Override
     public void visit(LOJoin jointhrows FrontendException {
         execute(join);
     }
 
     @Override
     public void visit(LOCogroup cgthrows FrontendException {
         execute(cg);
     }
 
     @Override
     public void visit(LOLoad loadthrows FrontendException {
         execute(load);
     }
 
     @Override
     public void visit(LOStore storethrows FrontendException {
         execute(store);
     }
 
     @Override
     public void visit(LOForEach foreachthrows FrontendException {
         execute(foreach);
     }
 
     @Override
     public void visit(LOSplit splitthrows FrontendException {
         execute(split);
     }
 
     @Override
     public void visit(LOSplitOutput splitOutputthrows FrontendException {
        execute(splitOutput);
    }
    @Override
    public void visit(LOUnion unionthrows FrontendException {
        execute(union);
    }
    @Override
    public void visit(LOSort sortthrows FrontendException {
        execute(sort);
    }
    @Override
    public void visit(LORank rankthrows FrontendException {
        execute(rank);
    }
    @Override
    public void visit(LODistinct distinctthrows FrontendException {
        execute(distinct);
    }
    @Override
    public void visit(LOCross crossthrows FrontendException {
        execute(cross);
    }
    @Override
    public void visit(LOStream streamthrows FrontendException {
        execute(stream);
    }
New to GrepCode? Check out our FAQ X