org.apache.hadoop.hive.ql.optimizer.physical
Class BucketingSortingOpProcFactory.MultiGroupByInferrer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingOpProcFactory.DefaultInferrer
      extended by org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingOpProcFactory.GroupByInferrer
          extended by org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingOpProcFactory.MultiGroupByInferrer
All Implemented Interfaces:
NodeProcessor
Enclosing class:
BucketingSortingOpProcFactory

public static class BucketingSortingOpProcFactory.MultiGroupByInferrer
extends BucketingSortingOpProcFactory.GroupByInferrer
implements NodeProcessor

Processor for GroupByOperator, the special case where it follows a ForwardOperator There is a multi group by optimization which puts multiple group by operators in a reducer when they share the same keys and are part of a multi insert query. In this case the tree should look like Group By Operator / ReduceSinkOperator - ForwardOperator --- ... \ GroupByOperator


Constructor Summary
BucketingSortingOpProcFactory.MultiGroupByInferrer()
           
 
Method Summary
 Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs)
          Generic process for all ops that don't have specific implementations.
 
Methods inherited from class org.apache.hadoop.hive.ql.optimizer.physical.BucketingSortingOpProcFactory.GroupByInferrer
processGroupBy, processGroupByReduceSink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketingSortingOpProcFactory.MultiGroupByInferrer

public BucketingSortingOpProcFactory.MultiGroupByInferrer()
Method Detail

process

public Object process(Node nd,
                      Stack<Node> stack,
                      NodeProcessorCtx procCtx,
                      Object... nodeOutputs)
               throws SemanticException
Description copied from interface: NodeProcessor
Generic process for all ops that don't have specific implementations.

Specified by:
process in interface NodeProcessor
Overrides:
process in class BucketingSortingOpProcFactory.GroupByInferrer
Parameters:
nd - operator to process
procCtx - operator processor context
nodeOutputs - A variable argument list of outputs from other nodes in the walk
Returns:
Object to be returned by the process call
Throws:
SemanticException


Copyright © 2012 The Apache Software Foundation