org.apache.hadoop.hive.ql.exec
Class AbstractMapJoinOperator<T extends MapJoinDesc>

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.Operator<T>
      extended by org.apache.hadoop.hive.ql.exec.CommonJoinOperator<T>
          extended by org.apache.hadoop.hive.ql.exec.AbstractMapJoinOperator<T>
All Implemented Interfaces:
Serializable, Node
Direct Known Subclasses:
MapJoinOperator, SMBMapJoinOperator

public abstract class AbstractMapJoinOperator<T extends MapJoinDesc>
extends CommonJoinOperator<T>
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.CommonJoinOperator
CommonJoinOperator.IntermediateObject
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator
Operator.OperatorFunc, Operator.ProgressCounter, Operator.State
 
Field Summary
protected  RowContainer<ArrayList<Object>> emptyList
           
protected  Map<Byte,List<ExprNodeEvaluator>> joinKeys
          The expressions for join inputs's join keys.
protected  Map<Byte,List<ObjectInspector>> joinKeysObjectInspectors
          The ObjectInspectors for the join inputs's join keys.
protected  Map<Byte,List<ObjectInspector>> joinKeysStandardObjectInspectors
          The standard ObjectInspectors for the join inputs's join keys.
protected  int posBigTable
           
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.CommonJoinOperator
alias, condn, countAfterReport, dummyObj, dummyObjVectors, heartbeatInterval, joinFilterObjectInspectors, joinFilters, joinValues, joinValuesObjectInspectors, joinValuesStandardObjectInspectors, LOG, noOuterJoin, NOTSKIPBIGTABLE, numAliases, order, rowContainerStandardObjectInspectors, spillTableDesc, 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, isLogInfoEnabled, numInputRowsCntr, numOutputRowsCntr, operatorId, out, outputObjInspector, outputRows, parentOperators, reporter, state, statsMap, timeTakenCntr, totalTime
 
Constructor Summary
AbstractMapJoinOperator()
           
AbstractMapJoinOperator(AbstractMapJoinOperator<? extends MapJoinDesc> mjop)
           
 
Method Summary
protected  void fatalErrorMessage(StringBuilder errMsg, long counterCode)
          Get the fatal error message based on counter's code.
 OperatorType getType()
          Return the type of the specific operator among the types in OperatorType.
protected  boolean hasAnyNulls(AbstractMapJoinKey key)
           
protected  boolean hasAnyNulls(ArrayList<Object> key)
           
protected  boolean hasAnyNulls(Object[] key)
           
protected  void initializeOp(org.apache.hadoop.conf.Configuration hconf)
          Operator specific initialization.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.CommonJoinOperator
checkAndGenObject, closeOp, endGroup, getJoinOutputObjectInspector, getName, getNextSize, getPosToAliasMap, isFiltered, reportProgress, setPosToAliasMap, startGroup
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator
allInitializedParentsAreClosed, areAllParentsInitialized, assignCounterNameToEnum, augmentPlan, checkFatalErrors, cleanUpInputFileChanged, cleanUpInputFileChangedOp, close, dump, dump, forward, getChildOperators, getChildren, getColumnExprMap, getConf, getCounterNames, getCounterNameToEnum, getCounters, getDone, getExecContext, getGroupKeyObject, getIdentifier, getInputObjInspectors, getOperatorId, getParentOperators, getSchema, getStats, incrCounter, initEvaluators, initEvaluators, initEvaluatorsAndReturnStruct, initialize, initializeChildren, initializeCounters, initializeLocalWork, initOperatorId, jobClose, logStats, passExecContext, preorderMap, process, processOp, removeChild, removeChildAndAdoptItsChildren, replaceChild, replaceParent, reset, resetId, resetLastEnumUsed, resetStats, setAlias, setChildOperators, setColumnExprMap, setConf, setCounterNames, setCounterNameToEnum, setDone, setExecContext, setGroupKeyObject, setId, setInputObjInspectors, setOperatorId, setOutputCollector, setParentOperators, setReporter, setSchema, updateCounters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joinKeys

protected transient Map<Byte,List<ExprNodeEvaluator>> joinKeys
The expressions for join inputs's join keys.


joinKeysObjectInspectors

protected transient Map<Byte,List<ObjectInspector>> joinKeysObjectInspectors
The ObjectInspectors for the join inputs's join keys.


joinKeysStandardObjectInspectors

protected transient Map<Byte,List<ObjectInspector>> joinKeysStandardObjectInspectors
The standard ObjectInspectors for the join inputs's join keys.


posBigTable

protected transient int posBigTable

emptyList

protected transient RowContainer<ArrayList<Object>> emptyList
Constructor Detail

AbstractMapJoinOperator

public AbstractMapJoinOperator()

AbstractMapJoinOperator

public AbstractMapJoinOperator(AbstractMapJoinOperator<? extends MapJoinDesc> mjop)
Method Detail

initializeOp

protected void initializeOp(org.apache.hadoop.conf.Configuration hconf)
                     throws HiveException
Description copied from class: Operator
Operator specific initialization.

Overrides:
initializeOp in class CommonJoinOperator<T extends MapJoinDesc>
Throws:
HiveException

fatalErrorMessage

protected void fatalErrorMessage(StringBuilder errMsg,
                                 long counterCode)
Description copied from class: Operator
Get the fatal error message based on counter's code.

Overrides:
fatalErrorMessage in class Operator<T extends MapJoinDesc>
Parameters:
errMsg - error message should be appended to this output parameter.
counterCode - input counter code.

getType

public OperatorType getType()
Description copied from class: Operator
Return the type of the specific operator among the types in OperatorType.

Specified by:
getType in class Operator<T extends MapJoinDesc>
Returns:
OperatorType.*

hasAnyNulls

protected boolean hasAnyNulls(ArrayList<Object> key)

hasAnyNulls

protected boolean hasAnyNulls(Object[] key)

hasAnyNulls

protected boolean hasAnyNulls(AbstractMapJoinKey key)


Copyright © 2011 The Apache Software Foundation