org.apache.hadoop.hive.ql.plan
Class reduceSinkDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.reduceSinkDesc
- All Implemented Interfaces:
- Serializable
public class reduceSinkDesc
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reduceSinkDesc
public reduceSinkDesc()
reduceSinkDesc
public reduceSinkDesc(ArrayList<exprNodeDesc> keyCols,
ArrayList<exprNodeDesc> valueCols,
int tag,
ArrayList<exprNodeDesc> partitionCols,
int numReducers,
tableDesc keySerializeInfo,
tableDesc valueSerializeInfo)
getKeyCols
public ArrayList<exprNodeDesc> getKeyCols()
setKeyCols
public void setKeyCols(ArrayList<exprNodeDesc> keyCols)
getValueCols
public ArrayList<exprNodeDesc> getValueCols()
setValueCols
public void setValueCols(ArrayList<exprNodeDesc> valueCols)
getPartitionCols
public ArrayList<exprNodeDesc> getPartitionCols()
setPartitionCols
public void setPartitionCols(ArrayList<exprNodeDesc> partitionCols)
getTag
public int getTag()
setTag
public void setTag(int tag)
getNumReducers
public int getNumReducers()
- Returns the number of reducers for the map-reduce job.
-1 means to decide the number of reducers at runtime. This enables Hive to estimate
the number of reducers based on the map-reduce input data size, which is only
available right before we start the map-reduce job.
setNumReducers
public void setNumReducers(int numReducers)
getKeySerializeInfo
public tableDesc getKeySerializeInfo()
setKeySerializeInfo
public void setKeySerializeInfo(tableDesc keySerializeInfo)
getValueSerializeInfo
public tableDesc getValueSerializeInfo()
setValueSerializeInfo
public void setValueSerializeInfo(tableDesc valueSerializeInfo)
getOrder
public String getOrder()
- Returns the sort order of the key columns.
- Returns:
- null, which means ascending order for all key columns,
or a String of the same length as key columns, that consists of only
"+" (ascending order) and "-" (descending order).
Copyright © 2009 The Apache Software Foundation