org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class MapReduceOper
java.lang.Object
org.apache.pig.impl.plan.Operator<MROpPlanVisitor>
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceOper
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
- Direct Known Subclasses:
- NativeMapReduceOper
public class MapReduceOper
- extends Operator<MROpPlanVisitor>
An operator model for a Map Reduce job.
Acts as a host to the plans that will
execute in map, reduce and optionally combine
phases. These will be embedded in the MROperPlan
in order to capture the dependencies amongst jobs.
- See Also:
- Serialized Form
Fields inherited from class org.apache.pig.impl.plan.Operator |
mKey |
mapPlan
public PhysicalPlan mapPlan
reducePlan
public PhysicalPlan reducePlan
combinePlan
public PhysicalPlan combinePlan
mapKeyType
public byte mapKeyType
UDFs
public Set<String> UDFs
scalars
public Set<PhysicalOperator> scalars
phyToMRMap
public MultiMap<PhysicalOperator,PhysicalOperator> phyToMRMap
MapReduceOper
public MapReduceOper(OperatorKey k)
name
public String name()
- Uses the string representation of the
component plans to identify itself.
- Specified by:
name
in class Operator<MROpPlanVisitor>
supportsMultipleInputs
public boolean supportsMultipleInputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple inputs.
- Specified by:
supportsMultipleInputs
in class Operator<MROpPlanVisitor>
- Returns:
- true if it does, otherwise false.
supportsMultipleOutputs
public boolean supportsMultipleOutputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple outputs.
- Specified by:
supportsMultipleOutputs
in class Operator<MROpPlanVisitor>
- Returns:
- true if it does, otherwise false.
visit
public void visit(MROpPlanVisitor v)
throws VisitorException
- Description copied from class:
Operator
- Visit this node with the provided visitor. This should only be called by
the visitor class itself, never directly.
- Specified by:
visit
in class Operator<MROpPlanVisitor>
- Parameters:
v
- Visitor to visit with.
- Throws:
VisitorException
- if the visitor has a problem.
isMapDone
public boolean isMapDone()
setMapDone
public void setMapDone(boolean mapDone)
setMapDoneSingle
public void setMapDoneSingle(boolean mapDone)
throws PlanException
- Throws:
PlanException
setMapDoneMultiple
public void setMapDoneMultiple(boolean mapDone)
throws PlanException
- Throws:
PlanException
isReduceDone
public boolean isReduceDone()
setReduceDone
public void setReduceDone(boolean reduceDone)
isGlobalSort
public boolean isGlobalSort()
isSkewedJoin
public boolean isSkewedJoin()
setSkewedJoinPartitionFile
public void setSkewedJoinPartitionFile(String file)
getSkewedJoinPartitionFile
public String getSkewedJoinPartitionFile()
setSkewedJoin
public void setSkewedJoin(boolean skJoin)
getSkewedJoin
public boolean getSkewedJoin()
setGlobalSort
public void setGlobalSort(boolean globalSort)
isLimitAfterSort
public boolean isLimitAfterSort()
setLimitAfterSort
public void setLimitAfterSort(boolean las)
isLimitOnly
public boolean isLimitOnly()
setLimitOnly
public void setLimitOnly(boolean limitOnly)
isIndexer
public boolean isIndexer()
markIndexer
public void markIndexer()
isSampler
public boolean isSampler()
markSampler
public void markSampler()
isGroupBy
public boolean isGroupBy()
markGroupBy
public void markGroupBy()
isCogroup
public boolean isCogroup()
markCogroup
public void markCogroup()
isRegularJoin
public boolean isRegularJoin()
markRegularJoin
public void markRegularJoin()
needsDistinctCombiner
public boolean needsDistinctCombiner()
setNeedsDistinctCombiner
public void setNeedsDistinctCombiner(boolean nic)
getQuantFile
public String getQuantFile()
setQuantFile
public void setQuantFile(String quantFile)
setSortOrder
public void setSortOrder(boolean[] sortOrder)
setSecondarySortOrder
public void setSecondarySortOrder(boolean[] secondarySortOrder)
getSortOrder
public boolean[] getSortOrder()
getSecondarySortOrder
public boolean[] getSecondarySortOrder()
isEndOfAllInputSetInMap
public boolean isEndOfAllInputSetInMap()
- Returns:
- whether end of all input is set in the map plan
setEndOfAllInputInMap
public void setEndOfAllInputInMap(boolean endOfAllInputInMap)
- Parameters:
endOfAllInputInMap
- the streamInMap to set
isEndOfAllInputSetInReduce
public boolean isEndOfAllInputSetInReduce()
- Returns:
- whether end of all input is set in the reduce plan
setEndOfAllInputInReduce
public void setEndOfAllInputInReduce(boolean endOfAllInputInReduce)
- Parameters:
endOfAllInputInReduce
- the streamInReduce to set
getRequestedParallelism
public int getRequestedParallelism()
getCustomPartitioner
public String getCustomPartitioner()
setSplitter
public void setSplitter(boolean spl)
isSplitter
public boolean isSplitter()
getUseSecondaryKey
public boolean getUseSecondaryKey()
setUseSecondaryKey
public void setUseSecondaryKey(boolean useSecondaryKey)
usingTypedComparator
protected boolean usingTypedComparator()
useTypedComparator
protected void useTypedComparator(boolean useTypedComparator)
noCombineSmallSplits
protected void noCombineSmallSplits()
combineSmallSplits
public boolean combineSmallSplits()
isRankOperation
public boolean isRankOperation()
getRankOperationId
public ArrayList<String> getRankOperationId()
isCounterOperation
public boolean isCounterOperation()
isRowNumber
public boolean isRowNumber()
getOperationID
public String getOperationID()
Copyright © 2007-2012 The Apache Software Foundation