public class MapReduceOper extends Operator<MROpPlanVisitor>
Modifier and Type | Field and Description |
---|---|
PhysicalPlan |
combinePlan |
byte |
mapKeyType |
byte[] |
mapKeyTypeOfSplittees |
PhysicalPlan |
mapPlan |
MultiMap<PhysicalOperator,PhysicalOperator> |
phyToMRMap |
PhysicalPlan |
reducePlan |
Set<PhysicalOperator> |
scalars |
Set<String> |
UDFs |
Constructor and Description |
---|
MapReduceOper(OperatorKey k) |
Modifier and Type | Method and Description |
---|---|
boolean |
combineSmallSplits() |
String |
getCustomPartitioner() |
String |
getOperationID() |
String |
getQuantFile() |
ArrayList<String> |
getRankOperationId() |
int |
getRequestedParallelism() |
boolean[] |
getSecondarySortOrder() |
boolean |
getSkewedJoin() |
String |
getSkewedJoinPartitionFile() |
boolean[] |
getSortOrder() |
boolean |
getUseSecondaryKey() |
boolean |
isCogroup() |
boolean |
isCounterOperation() |
boolean |
isEndOfAllInputSetInMap() |
boolean |
isEndOfAllInputSetInReduce() |
boolean |
isGlobalSort() |
boolean |
isGroupBy() |
boolean |
isIndexer() |
boolean |
isLimitAfterSort() |
boolean |
isLimitOnly() |
boolean |
isMapDone() |
boolean |
isRankOperation() |
boolean |
isReduceDone() |
boolean |
isRegularJoin() |
boolean |
isRowNumber() |
boolean |
isSampler() |
boolean |
isSkewedJoin() |
boolean |
isSplitter() |
void |
markCogroup() |
void |
markGroupBy() |
void |
markIndexer() |
void |
markRegularJoin() |
void |
markSampler() |
String |
name()
Uses the string representation of the
component plans to identify itself.
|
boolean |
needsDistinctCombiner() |
protected void |
noCombineSmallSplits() |
void |
setEndOfAllInputInMap(boolean endOfAllInputInMap) |
void |
setEndOfAllInputInReduce(boolean endOfAllInputInReduce) |
void |
setGlobalSort(boolean globalSort) |
void |
setLimitAfterSort(boolean las) |
void |
setLimitOnly(boolean limitOnly) |
void |
setMapDone(boolean mapDone) |
void |
setMapDoneMultiple(boolean mapDone) |
void |
setMapDoneSingle(boolean mapDone) |
void |
setNeedsDistinctCombiner(boolean nic) |
void |
setQuantFile(String quantFile) |
void |
setReduceDone(boolean reduceDone) |
void |
setSecondarySortOrder(boolean[] secondarySortOrder) |
void |
setSkewedJoin(boolean skJoin) |
void |
setSkewedJoinPartitionFile(String file) |
void |
setSortOrder(boolean[] sortOrder) |
void |
setSplitter(boolean spl) |
void |
setUseSecondaryKey(boolean useSecondaryKey) |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
protected void |
useTypedComparator(boolean useTypedComparator) |
protected boolean |
usingTypedComparator() |
void |
visit(MROpPlanVisitor v)
Visit this node with the provided visitor.
|
clone, compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
public PhysicalPlan mapPlan
public PhysicalPlan reducePlan
public PhysicalPlan combinePlan
public byte mapKeyType
public byte[] mapKeyTypeOfSplittees
public Set<PhysicalOperator> scalars
public MultiMap<PhysicalOperator,PhysicalOperator> phyToMRMap
public MapReduceOper(OperatorKey k)
public String name()
name
in class Operator<MROpPlanVisitor>
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<MROpPlanVisitor>
public boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs
in class Operator<MROpPlanVisitor>
public void visit(MROpPlanVisitor v) throws VisitorException
Operator
visit
in class Operator<MROpPlanVisitor>
v
- Visitor to visit with.VisitorException
- if the visitor has a problem.public boolean isMapDone()
public void setMapDone(boolean mapDone)
public void setMapDoneSingle(boolean mapDone) throws PlanException
PlanException
public void setMapDoneMultiple(boolean mapDone) throws PlanException
PlanException
public boolean isReduceDone()
public void setReduceDone(boolean reduceDone)
public boolean isGlobalSort()
public boolean isSkewedJoin()
public void setSkewedJoinPartitionFile(String file)
public String getSkewedJoinPartitionFile()
public void setSkewedJoin(boolean skJoin)
public boolean getSkewedJoin()
public void setGlobalSort(boolean globalSort)
public boolean isLimitAfterSort()
public void setLimitAfterSort(boolean las)
public boolean isLimitOnly()
public void setLimitOnly(boolean limitOnly)
public boolean isIndexer()
public void markIndexer()
public boolean isSampler()
public void markSampler()
public boolean isGroupBy()
public void markGroupBy()
public boolean isCogroup()
public void markCogroup()
public boolean isRegularJoin()
public void markRegularJoin()
public boolean needsDistinctCombiner()
public void setNeedsDistinctCombiner(boolean nic)
public String getQuantFile()
public void setQuantFile(String quantFile)
public void setSortOrder(boolean[] sortOrder)
public void setSecondarySortOrder(boolean[] secondarySortOrder)
public boolean[] getSortOrder()
public boolean[] getSecondarySortOrder()
public boolean isEndOfAllInputSetInMap()
public void setEndOfAllInputInMap(boolean endOfAllInputInMap)
endOfAllInputInMap
- the streamInMap to setpublic boolean isEndOfAllInputSetInReduce()
public void setEndOfAllInputInReduce(boolean endOfAllInputInReduce)
endOfAllInputInReduce
- the streamInReduce to setpublic int getRequestedParallelism()
public String getCustomPartitioner()
public void setSplitter(boolean spl)
public boolean isSplitter()
public boolean getUseSecondaryKey()
public void setUseSecondaryKey(boolean useSecondaryKey)
protected boolean usingTypedComparator()
protected void useTypedComparator(boolean useTypedComparator)
protected void noCombineSmallSplits()
public boolean combineSmallSplits()
public boolean isRankOperation()
public boolean isCounterOperation()
public boolean isRowNumber()
public String getOperationID()
Copyright © 2007-2012 The Apache Software Foundation