org.apache.hadoop.hive.ql.optimizer.correlation
Class IntraQueryCorrelation
java.lang.Object
org.apache.hadoop.hive.ql.optimizer.correlation.IntraQueryCorrelation
public class IntraQueryCorrelation
- extends Object
IntraQueryCorrelation records a sub-tree of the query plan tree which can be
evaluated in a single MR job. The boundary of this sub-tree is recorded by
the ReduceSinkOperators the the bottom of this sub-tree.
Also, allReduceSinkOperators in IntraQueryCorrelation contains all
ReduceSinkOperators of this sub-tree.
IntraQueryCorrelation
public IntraQueryCorrelation(int minReducers)
getNewTagToOldTag
public Map<Integer,Integer> getNewTagToOldTag()
getNewTagToChildIndex
public Map<Integer,Integer> getNewTagToChildIndex()
setNewTag
public void setNewTag(Integer newTag,
Integer oldTag,
Integer childIndex)
addToAllReduceSinkOperators
public void addToAllReduceSinkOperators(ReduceSinkOperator rsop)
getAllReduceSinkOperators
public Set<ReduceSinkOperator> getAllReduceSinkOperators()
setJobFlowCorrelation
public void setJobFlowCorrelation(boolean jobFlowCorrelation,
List<ReduceSinkOperator> bottomReduceSinkOperators)
hasJobFlowCorrelation
public boolean hasJobFlowCorrelation()
getBottomReduceSinkOperators
public List<ReduceSinkOperator> getBottomReduceSinkOperators()
getNumReducers
public int getNumReducers()
adjustNumReducers
public boolean adjustNumReducers(int newNumReducers)
Copyright © 2014 The Apache Software Foundation. All rights reserved.