org.apache.hadoop.hive.ql.plan
Class FetchWork

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

public class FetchWork
extends Object
implements Serializable

FetchWork.

See Also:
Serialized Form

Constructor Summary
FetchWork()
           
FetchWork(List<String> partDir, List<PartitionDesc> partDesc, TableDesc tblDesc)
           
FetchWork(List<String> partDir, List<PartitionDesc> partDesc, TableDesc tblDesc, int limit)
           
FetchWork(String tblDir, TableDesc tblDesc)
           
FetchWork(String tblDir, TableDesc tblDesc, int limit)
           
 
Method Summary
static List<String> convertPathToStringArray(List<org.apache.hadoop.fs.Path> paths)
           
static List<org.apache.hadoop.fs.Path> convertStringToPathArray(List<String> paths)
           
 int getLeastNumRows()
           
 int getLimit()
           
 ArrayList<PartitionDesc> getPartDesc()
           
 List<PartitionDesc> getPartDescs(List<org.apache.hadoop.fs.Path> paths)
           
 ArrayList<String> getPartDir()
           
 List<org.apache.hadoop.fs.Path> getPartDirPath()
           
 String getSerializationNullFormat()
           
 ListSinkOperator getSink()
           
 Operator<?> getSource()
           
 SplitSample getSplitSample()
           
 TableDesc getTblDesc()
           
 String getTblDir()
           
 org.apache.hadoop.fs.Path getTblDirPath()
           
 void initializeForFetch()
           
 boolean isNotPartitioned()
           
 boolean isPartitioned()
           
 void setLeastNumRows(int leastNumRows)
           
 void setLimit(int limit)
           
 void setPartDesc(ArrayList<PartitionDesc> partDesc)
           
 void setPartDir(ArrayList<String> partDir)
           
 void setSerializationNullFormat(String format)
           
 void setSink(ListSinkOperator sink)
           
 void setSource(Operator<?> source)
           
 void setSplitSample(SplitSample splitSample)
           
 void setTblDesc(TableDesc tblDesc)
           
 void setTblDir(String tblDir)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FetchWork

public FetchWork()

FetchWork

public FetchWork(String tblDir,
                 TableDesc tblDesc)

FetchWork

public FetchWork(String tblDir,
                 TableDesc tblDesc,
                 int limit)

FetchWork

public FetchWork(List<String> partDir,
                 List<PartitionDesc> partDesc,
                 TableDesc tblDesc)

FetchWork

public FetchWork(List<String> partDir,
                 List<PartitionDesc> partDesc,
                 TableDesc tblDesc,
                 int limit)
Method Detail

initializeForFetch

public void initializeForFetch()

getSerializationNullFormat

public String getSerializationNullFormat()

setSerializationNullFormat

public void setSerializationNullFormat(String format)

isNotPartitioned

public boolean isNotPartitioned()

isPartitioned

public boolean isPartitioned()

getTblDir

public String getTblDir()
Returns:
the tblDir

getTblDirPath

public org.apache.hadoop.fs.Path getTblDirPath()
Returns:
the tblDir

setTblDir

public void setTblDir(String tblDir)
Parameters:
tblDir - the tblDir to set

getTblDesc

public TableDesc getTblDesc()
Returns:
the tblDesc

setTblDesc

public void setTblDesc(TableDesc tblDesc)
Parameters:
tblDesc - the tblDesc to set

getPartDir

public ArrayList<String> getPartDir()
Returns:
the partDir

getPartDirPath

public List<org.apache.hadoop.fs.Path> getPartDirPath()

convertPathToStringArray

public static List<String> convertPathToStringArray(List<org.apache.hadoop.fs.Path> paths)

convertStringToPathArray

public static List<org.apache.hadoop.fs.Path> convertStringToPathArray(List<String> paths)

setPartDir

public void setPartDir(ArrayList<String> partDir)
Parameters:
partDir - the partDir to set

getPartDesc

public ArrayList<PartitionDesc> getPartDesc()
Returns:
the partDesc

getPartDescs

public List<PartitionDesc> getPartDescs(List<org.apache.hadoop.fs.Path> paths)
Returns:
the partDescs for paths

setPartDesc

public void setPartDesc(ArrayList<PartitionDesc> partDesc)
Parameters:
partDesc - the partDesc to set

getLimit

public int getLimit()
Returns:
the limit

setLimit

public void setLimit(int limit)
Parameters:
limit - the limit to set

getLeastNumRows

public int getLeastNumRows()

setLeastNumRows

public void setLeastNumRows(int leastNumRows)

getSource

public Operator<?> getSource()

setSource

public void setSource(Operator<?> source)

getSink

public ListSinkOperator getSink()

setSink

public void setSink(ListSinkOperator sink)

setSplitSample

public void setSplitSample(SplitSample splitSample)

getSplitSample

public SplitSample getSplitSample()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 The Apache Software Foundation