org.apache.hadoop.hive.ql.optimizer
Class Optimizer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.Optimizer

public class Optimizer
extends Object

Implementation of the optimizer


Constructor Summary
Optimizer()
          empty constructor
 
Method Summary
 ParseContext getPctx()
           
 void initialize()
          create the list of transformations
 ParseContext optimize()
          invoke all the transformations one-by-one, and alter the query plan
 void setPctx(ParseContext pctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Optimizer

public Optimizer()
empty constructor

Method Detail

initialize

public void initialize()
create the list of transformations


optimize

public ParseContext optimize()
                      throws SemanticException
invoke all the transformations one-by-one, and alter the query plan

Returns:
ParseContext
Throws:
SemanticException

getPctx

public ParseContext getPctx()
Returns:
the pctx

setPctx

public void setPctx(ParseContext pctx)
Parameters:
pctx - the pctx to set


Copyright © 2009 The Apache Software Foundation