org.apache.hadoop.hive.ql.exec
Class ExecMapperContext
java.lang.Object
org.apache.hadoop.hive.ql.exec.ExecMapperContext
public class ExecMapperContext
- extends Object
Field Summary |
static org.apache.commons.logging.Log |
l4j
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
l4j
public static final org.apache.commons.logging.Log l4j
ExecMapperContext
public ExecMapperContext()
getCurrentBigBucketFile
public String getCurrentBigBucketFile()
setCurrentBigBucketFile
public void setCurrentBigBucketFile(String currentBigBucketFile)
clear
public void clear()
inputFileChanged
public boolean inputFileChanged()
- For CompbineFileInputFormat, the mapper's input file will be changed on the
fly, and the input file name is passed to jobConf by shims/initNextRecordReader.
If the map local work has any mapping depending on the current
mapper's input file, the work need to clear context and re-initialization
after the input file changed. This is first introduced to process bucket
map join.
- Returns:
- is the input file changed?
resetRow
public void resetRow()
- Reset the execution context for each new row. This function should be called only
once at the root of the operator tree -- ExecMapper.map().
Note: this function should be kept minimum since it is called for each input row.
getLastInputFile
public String getLastInputFile()
setLastInputFile
public void setLastInputFile(String lastInputFile)
getCurrentInputFile
public String getCurrentInputFile()
setCurrentInputFile
public void setCurrentInputFile(String currentInputFile)
getJc
public org.apache.hadoop.mapred.JobConf getJc()
setJc
public void setJc(org.apache.hadoop.mapred.JobConf jc)
getLocalWork
public MapredLocalWork getLocalWork()
setLocalWork
public void setLocalWork(MapredLocalWork localWork)
getFileId
public String getFileId()
setFileId
public void setFileId(String fileId)
getFetchOperators
public Map<String,FetchOperator> getFetchOperators()
setFetchOperators
public void setFetchOperators(Map<String,FetchOperator> fetchOperators)
getIoCxt
public IOContext getIoCxt()
setIoCxt
public void setIoCxt(IOContext ioCxt)
Copyright © 2013 The Apache Software Foundation