org.apache.hadoop.hive.ql.plan
Class FetchWork
java.lang.Object
org.apache.hadoop.hive.ql.plan.FetchWork
- All Implemented Interfaces:
- Serializable
public class FetchWork
- extends Object
- implements Serializable
FetchWork.
- See Also:
- Serialized Form
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)
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 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<Path> getPartDirPath()
convertPathToStringArray
public static List<String> convertPathToStringArray(List<Path> paths)
convertStringToPathArray
public static List<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
getPartDescOrderedByPartDir
public ArrayList<PartitionDesc> getPartDescOrderedByPartDir()
- Get Partition descriptors in sorted (ascending) order of partition directory
- Returns:
- the partDesc array list
getPartDescs
public List<PartitionDesc> getPartDescs(List<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 © 2012 The Apache Software Foundation