org.apache.hadoop.hive.ql.exec
Class FetchOperator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.FetchOperator
All Implemented Interfaces:
Serializable

public class FetchOperator
extends Object
implements Serializable

FetchTask implementation.

See Also:
Serialized Form

Constructor Summary
FetchOperator()
           
FetchOperator(FetchWork work, org.apache.hadoop.mapred.JobConf job)
           
 
Method Summary
 void clearFetchContext()
          Clear the context, if anything needs to be done.
 PartitionDesc getCurrPart()
           
 TableDesc getCurrTbl()
           
 InspectableObject getNextRow()
          Get the next row.
 ObjectInspector getOutputObjectInspector()
           
 int getSplitNum()
           
 FetchWork getWork()
           
 void initialize(org.apache.hadoop.mapred.JobConf job)
           
 boolean isTblDataDone()
           
 void setCurrPart(PartitionDesc currPart)
           
 void setCurrTbl(TableDesc currTbl)
           
 void setSplitNum(int splitNum)
           
 void setTblDataDone(boolean tblDataDone)
           
 void setupContext(Iterator<org.apache.hadoop.fs.Path> iterPath, Iterator<PartitionDesc> iterPartDesc)
          used for bucket map join.
 void setWork(FetchWork work)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchOperator

public FetchOperator()

FetchOperator

public FetchOperator(FetchWork work,
                     org.apache.hadoop.mapred.JobConf job)
Method Detail

initialize

public void initialize(org.apache.hadoop.mapred.JobConf job)

getWork

public FetchWork getWork()

setWork

public void setWork(FetchWork work)

getSplitNum

public int getSplitNum()

setSplitNum

public void setSplitNum(int splitNum)

getCurrPart

public PartitionDesc getCurrPart()

setCurrPart

public void setCurrPart(PartitionDesc currPart)

getCurrTbl

public TableDesc getCurrTbl()

setCurrTbl

public void setCurrTbl(TableDesc currTbl)

isTblDataDone

public boolean isTblDataDone()

setTblDataDone

public void setTblDataDone(boolean tblDataDone)

getNextRow

public InspectableObject getNextRow()
                             throws IOException
Get the next row. The fetch context is modified appropriately.

Throws:
IOException

clearFetchContext

public void clearFetchContext()
                       throws HiveException
Clear the context, if anything needs to be done.

Throws:
HiveException

setupContext

public void setupContext(Iterator<org.apache.hadoop.fs.Path> iterPath,
                         Iterator<PartitionDesc> iterPartDesc)
used for bucket map join. there is a hack for getting partitionDesc. bucket map join right now only allow one partition present in bucket map join.


getOutputObjectInspector

public ObjectInspector getOutputObjectInspector()
                                         throws HiveException
Throws:
HiveException


Copyright © 2010 The Apache Software Foundation