|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.Operator<T>
org.apache.hadoop.hive.ql.exec.CommonJoinOperator<T>
public abstract class CommonJoinOperator<T extends JoinDesc>
Join operator implementation.
Nested Class Summary | |
---|---|
static class |
CommonJoinOperator.IntermediateObject
IntermediateObject. |
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator |
---|
Operator.OperatorFunc, Operator.ProgressCounter, Operator.State |
Field Summary | |
---|---|
protected Byte |
alias
|
protected JoinCondDesc[] |
condn
|
protected Object[] |
dummyObj
|
protected RowContainer<ArrayList<Object>>[] |
dummyObjVectors
|
protected Map<Byte,List<ExprNodeEvaluator>> |
joinValues
The expressions for join outputs. |
protected Map<Byte,List<ObjectInspector>> |
joinValuesObjectInspectors
The ObjectInspectors for the join inputs. |
protected Map<Byte,List<ObjectInspector>> |
joinValuesStandardObjectInspectors
The standard ObjectInspectors for the join inputs. |
protected static org.apache.commons.logging.Log |
LOG
|
protected boolean |
noOuterJoin
|
protected int |
numAliases
|
protected static Byte[] |
order
|
protected Map<Byte,TableDesc> |
spillTableDesc
|
protected int |
totalSz
|
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator |
---|
beginTime, childOperators, childOperatorsArray, childOperatorsTag, colExprMap, conf, counterNames, counterNameToEnum, counters, done, fatalErrorCntr, groupKeyObject, id, inputObjInspectors, inputRows, numInputRowsCntr, numOutputRowsCntr, operatorId, out, outputObjInspector, outputRows, parentOperators, reporter, state, statsMap, timeTakenCntr, totalTime |
Constructor Summary | |
---|---|
CommonJoinOperator()
|
|
CommonJoinOperator(CommonJoinOperator<T> clone)
|
Method Summary | ||
---|---|---|
protected void |
checkAndGenObject()
|
|
void |
closeOp(boolean abort)
All done. |
|
protected static ArrayList<Object> |
computeValues(Object row,
List<ExprNodeEvaluator> valueFields,
List<ObjectInspector> valueFieldsOI)
Return the value as a standard object. |
|
void |
endGroup()
Forward a record of join results. |
|
protected static
|
getJoinOutputObjectInspector(Byte[] order,
Map<Byte,List<ObjectInspector>> aliasToObjectInspectors,
T conf)
|
|
String |
getName()
Implements the getName function for the Node Interface. |
|
protected int |
getNextSize(int sz)
|
|
protected static HashMap<Byte,List<ObjectInspector>> |
getObjectInspectorsFromEvaluators(Map<Byte,List<ExprNodeEvaluator>> exprEntries,
ObjectInspector[] inputObjInspector)
|
|
Map<Integer,Set<String>> |
getPosToAliasMap()
|
|
Map<Byte,TableDesc> |
getSpillTableDesc()
|
|
TableDesc |
getSpillTableDesc(Byte alias)
|
|
protected static HashMap<Byte,List<ObjectInspector>> |
getStandardObjectInspectors(Map<Byte,List<ObjectInspector>> aliasToObjectInspectors)
|
|
protected void |
initializeOp(org.apache.hadoop.conf.Configuration hconf)
Operator specific initialization. |
|
protected int |
populateJoinKeyValue(Map<Byte,List<ExprNodeEvaluator>> outMap,
Map<Byte,List<ExprNodeDesc>> inputMap)
|
|
void |
setPosToAliasMap(Map<Integer,Set<String>> posToAliasMap)
|
|
void |
startGroup()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
protected transient int numAliases
protected transient Map<Byte,List<ExprNodeEvaluator>> joinValues
protected transient Map<Byte,List<ObjectInspector>> joinValuesObjectInspectors
protected transient Map<Byte,List<ObjectInspector>> joinValuesStandardObjectInspectors
protected static transient Byte[] order
protected transient JoinCondDesc[] condn
protected transient boolean noOuterJoin
protected transient Object[] dummyObj
protected transient RowContainer<ArrayList<Object>>[] dummyObjVectors
protected transient int totalSz
protected transient Map<Byte,TableDesc> spillTableDesc
protected transient Byte alias
Constructor Detail |
---|
public CommonJoinOperator()
public CommonJoinOperator(CommonJoinOperator<T> clone)
Method Detail |
---|
protected int populateJoinKeyValue(Map<Byte,List<ExprNodeEvaluator>> outMap, Map<Byte,List<ExprNodeDesc>> inputMap)
protected static HashMap<Byte,List<ObjectInspector>> getObjectInspectorsFromEvaluators(Map<Byte,List<ExprNodeEvaluator>> exprEntries, ObjectInspector[] inputObjInspector) throws HiveException
HiveException
protected static HashMap<Byte,List<ObjectInspector>> getStandardObjectInspectors(Map<Byte,List<ObjectInspector>> aliasToObjectInspectors)
protected static <T extends JoinDesc> ObjectInspector getJoinOutputObjectInspector(Byte[] order, Map<Byte,List<ObjectInspector>> aliasToObjectInspectors, T conf)
protected void initializeOp(org.apache.hadoop.conf.Configuration hconf) throws HiveException
Operator
initializeOp
in class Operator<T extends JoinDesc>
HiveException
public TableDesc getSpillTableDesc(Byte alias)
public Map<Byte,TableDesc> getSpillTableDesc()
public void startGroup() throws HiveException
startGroup
in class Operator<T extends JoinDesc>
HiveException
protected int getNextSize(int sz)
protected static ArrayList<Object> computeValues(Object row, List<ExprNodeEvaluator> valueFields, List<ObjectInspector> valueFieldsOI) throws HiveException
HiveException
public void endGroup() throws HiveException
endGroup
in class Operator<T extends JoinDesc>
HiveException
protected void checkAndGenObject() throws HiveException
HiveException
public void closeOp(boolean abort) throws HiveException
closeOp
in class Operator<T extends JoinDesc>
HiveException
public String getName()
Operator
getName
in interface Node
getName
in class Operator<T extends JoinDesc>
public Map<Integer,Set<String>> getPosToAliasMap()
public void setPosToAliasMap(Map<Integer,Set<String>> posToAliasMap)
posToAliasMap
- the posToAliasMap to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |