org.apache.hadoop.hive.ql.exec.vector
Class VectorMapJoinOperator

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<MapJoinDesc>
              extended by org.apache.hadoop.hive.ql.exec.MapJoinOperator
                  extended by org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator
All Implemented Interfaces:
Serializable, Cloneable, VectorizationContextRegion, Node

public class VectorMapJoinOperator
extends MapJoinOperator
implements VectorizationContextRegion

The vectorized version of the MapJoinOperator.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.Operator
Operator.OperatorFunc, Operator.State
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.MapJoinOperator
loader, mapJoinTables, outputForMapJoinKey
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.AbstractMapJoinOperator
emptyList, joinKeys, joinKeysObjectInspectors, joinKeysStandardObjectInspectors, posBigTable
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.CommonJoinOperator
alias, aliasFilterTags, condn, countAfterReport, dummyObj, dummyObjVectors, filterMaps, filterTags, forwardCache, hconf, heartbeatInterval, intermediate, joinFilterObjectInspectors, joinFilters, joinValues, joinValuesObjectInspectors, joinValuesStandardObjectInspectors, noOuterJoin, NOTSKIPBIGTABLE, nullsafes, numAliases, offsets, order, rowContainerStandardObjectInspectors, skipVectors, spillTableDesc, totalSz
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.Operator
childOperators, childOperatorsArray, childOperatorsTag, colExprMap, conf, done, groupKeyObject, groupKeyOI, HIVECOUNTERCREATEDFILES, HIVECOUNTERFATAL, id, inputObjInspectors, isLogInfoEnabled, operatorId, out, outputObjInspector, parentOperators, reporter, state, statsMap
 
Constructor Summary
VectorMapJoinOperator()
           
VectorMapJoinOperator(VectorizationContext vContext, OperatorDesc conf)
           
 
Method Summary
 void closeOp(boolean aborted)
          All done.
protected  MapJoinKey computeMapJoinKey(Object row, byte alias)
           
 VectorizationContext getOuputVectorizationContext()
           
 void initializeOp(org.apache.hadoop.conf.Configuration hconf)
          Operator specific initialization.
protected  void internalForward(Object row, ObjectInspector outputOI)
          'forwards' the (row-mode) record into the (vectorized) output batch
 void processOp(Object row, int tag)
          Process the row.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.MapJoinOperator
cleanUpInputFileChangedOp, endGroup, generateMapMetaData, getName, getOperatorName, getRefKey, getType, startGroup
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.CommonJoinOperator
checkAndGenObject, getFilteredValue, getFilterTag, getJoinOutputObjectInspector, getNextSize, getPosToAliasMap, hasFilter, opAllowedAfterMapJoin, opAllowedBeforeMapJoin, reportProgress, setPosToAliasMap
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.Operator
acceptLimitPushdown, allInitializedParentsAreClosed, areAllParentsInitialized, augmentPlan, cleanUpInputFileChanged, clone, cloneOp, cloneRecursiveChildren, close, columnNamesRowResolvedCanBeObtained, defaultEndGroup, defaultStartGroup, dump, dump, flush, forward, getAdditionalCounters, getChildOperators, getChildren, getColumnExprMap, getConf, getConfiguration, getDone, getExecContext, getGroupKeyObject, getGroupKeyObjectInspector, getIdentifier, getInputObjInspectors, getNextCntr, getNumChild, getNumParent, getOperatorId, getOpTraits, getOutputObjInspector, getParentOperators, getSchema, getStatistics, getStats, initEvaluators, initEvaluators, initEvaluatorsAndReturnStruct, initialize, initialize, initializeChildren, initializeLocalWork, initOperatorId, isUseBucketizedHiveInputFormat, jobClose, jobCloseOp, logStats, opAllowedBeforeSortMergeJoin, opAllowedConvertMapJoin, passExecContext, preorderMap, processGroup, removeChild, removeChildAndAdoptItsChildren, removeChildren, removeParent, replaceChild, replaceParent, reset, resetId, resetStats, setAlias, setChildOperators, setColumnExprMap, setConf, setDone, setExecContext, setGroupKeyObject, setGroupKeyObjectInspector, setId, setInputObjInspectors, setOperatorId, setOpTraits, setOutputCollector, setParentOperators, setReporter, setSchema, setStatistics, setUseBucketizedHiveInputFormat, supportAutomaticSortMergeJoin, supportSkewJoinOptimization, supportUnionRemoveOptimization, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorMapJoinOperator

public VectorMapJoinOperator()

VectorMapJoinOperator

public VectorMapJoinOperator(VectorizationContext vContext,
                             OperatorDesc conf)
                      throws HiveException
Throws:
HiveException
Method Detail

initializeOp

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

Overrides:
initializeOp in class MapJoinOperator
Throws:
HiveException

internalForward

protected void internalForward(Object row,
                               ObjectInspector outputOI)
                        throws HiveException
'forwards' the (row-mode) record into the (vectorized) output batch

Overrides:
internalForward in class CommonJoinOperator<MapJoinDesc>
Throws:
HiveException

closeOp

public void closeOp(boolean aborted)
             throws HiveException
Description copied from class: CommonJoinOperator
All done.

Overrides:
closeOp in class MapJoinOperator
Throws:
HiveException

computeMapJoinKey

protected MapJoinKey computeMapJoinKey(Object row,
                                       byte alias)
                                throws HiveException
Overrides:
computeMapJoinKey in class MapJoinOperator
Throws:
HiveException

processOp

public void processOp(Object row,
                      int tag)
               throws HiveException
Description copied from class: Operator
Process the row.

Overrides:
processOp in class MapJoinOperator
Parameters:
row - The object representing the row.
tag - The tag of the row usually means which parent this row comes from. Rows with the same tag should have exactly the same rowInspector all the time.
Throws:
HiveException

getOuputVectorizationContext

public VectorizationContext getOuputVectorizationContext()
Specified by:
getOuputVectorizationContext in interface VectorizationContextRegion


Copyright © 2014 The Apache Software Foundation. All rights reserved.