public class GenTezUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
GenTezUtils() |
Modifier and Type | Method and Description |
---|---|
MapWork |
createMapWork(GenTezProcContext context,
Operator<?> root,
TezWork tezWork,
PrunedPartitionList partitions) |
ReduceWork |
createReduceWork(GenTezProcContext context,
Operator<?> root,
TezWork tezWork) |
UnionWork |
createUnionWork(GenTezProcContext context,
Operator<?> root,
Operator<?> leaf,
TezWork tezWork) |
BaseWork |
getEnclosingWork(Operator<?> op,
GenTezProcContext procCtx)
getEncosingWork finds the BaseWork any given operator belongs to.
|
static GenTezUtils |
getUtils() |
void |
processAppMasterEvent(GenTezProcContext procCtx,
AppMasterEventOperator event)
processAppMasterEvent sets up the event descriptor and the MapWork.
|
void |
processFileSink(GenTezProcContext context,
FileSinkOperator fileSink) |
void |
removeBranch(AppMasterEventOperator event)
Remove an operator branch.
|
void |
removeUnionOperators(org.apache.hadoop.conf.Configuration conf,
GenTezProcContext context,
BaseWork work) |
void |
resetSequenceNumber() |
protected void |
setupMapWork(MapWork mapWork,
GenTezProcContext context,
PrunedPartitionList partitions,
Operator<? extends OperatorDesc> root,
String alias) |
protected void |
setupReduceSink(GenTezProcContext context,
ReduceWork reduceWork,
ReduceSinkOperator reduceSink) |
public static GenTezUtils getUtils()
public void resetSequenceNumber()
public UnionWork createUnionWork(GenTezProcContext context, Operator<?> root, Operator<?> leaf, TezWork tezWork)
public ReduceWork createReduceWork(GenTezProcContext context, Operator<?> root, TezWork tezWork)
protected void setupReduceSink(GenTezProcContext context, ReduceWork reduceWork, ReduceSinkOperator reduceSink)
public MapWork createMapWork(GenTezProcContext context, Operator<?> root, TezWork tezWork, PrunedPartitionList partitions) throws SemanticException
SemanticException
protected void setupMapWork(MapWork mapWork, GenTezProcContext context, PrunedPartitionList partitions, Operator<? extends OperatorDesc> root, String alias) throws SemanticException
SemanticException
public void removeUnionOperators(org.apache.hadoop.conf.Configuration conf, GenTezProcContext context, BaseWork work) throws SemanticException
SemanticException
public void processFileSink(GenTezProcContext context, FileSinkOperator fileSink) throws SemanticException
SemanticException
public void processAppMasterEvent(GenTezProcContext procCtx, AppMasterEventOperator event)
procCtx
- event
- public BaseWork getEnclosingWork(Operator<?> op, GenTezProcContext procCtx)
public void removeBranch(AppMasterEventOperator event)
event
- the leaf node of which branch to be removedCopyright © 2017 The Apache Software Foundation. All rights reserved.