public class GenMRProcContext extends Object implements NodeProcessorCtx
Modifier and Type | Class and Description |
---|---|
static class |
GenMRProcContext.GenMapRedCtx
GenMapRedCtx is used to keep track of the current state.
|
static class |
GenMRProcContext.GenMRUnionCtx
GenMRUnionCtx.
|
Constructor and Description |
---|
GenMRProcContext() |
GenMRProcContext(HiveConf conf,
HashMap<Operator<? extends OperatorDesc>,Task<? extends Serializable>> opTaskMap,
ParseContext parseCtx,
List<Task<MoveWork>> mvTask,
List<Task<? extends Serializable>> rootTasks,
LinkedHashMap<Operator<? extends OperatorDesc>,GenMRProcContext.GenMapRedCtx> mapCurrCtx,
Set<ReadEntity> inputs,
Set<WriteEntity> outputs) |
public GenMRProcContext()
public GenMRProcContext(HiveConf conf, HashMap<Operator<? extends OperatorDesc>,Task<? extends Serializable>> opTaskMap, ParseContext parseCtx, List<Task<MoveWork>> mvTask, List<Task<? extends Serializable>> rootTasks, LinkedHashMap<Operator<? extends OperatorDesc>,GenMRProcContext.GenMapRedCtx> mapCurrCtx, Set<ReadEntity> inputs, Set<WriteEntity> outputs)
conf
- hive configurationopTaskMap
- reducer to task mappingseenOps
- operator already visitedparseCtx
- current parse contextrootTasks
- root tasks for the planmvTask
- the final move taskmapCurrCtx
- operator to task mappingsinputs
- the set of input tables/partitions generated by the walkoutputs
- the set of destinations generated by the walkpublic HashMap<Operator<? extends OperatorDesc>,Task<? extends Serializable>> getOpTaskMap()
public void setOpTaskMap(HashMap<Operator<? extends OperatorDesc>,Task<? extends Serializable>> opTaskMap)
opTaskMap
- reducer to task mappingpublic List<FileSinkOperator> getSeenFileSinkOps()
public void setSeenFileSinkOps(List<FileSinkOperator> seenFileSinkOps)
seenFileSinkOps
- file sink operators already visitedpublic ParseContext getParseCtx()
public void setParseCtx(ParseContext parseCtx)
parseCtx
- current parse contextpublic void setMvTask(List<Task<MoveWork>> mvTask)
mvTask
- the final move taskpublic List<Task<? extends Serializable>> getRootTasks()
public void setRootTasks(List<Task<? extends Serializable>> rootTasks)
rootTasks
- root tasks for the planpublic boolean addRootIfPossible(Task<? extends Serializable> task)
public LinkedHashMap<Operator<? extends OperatorDesc>,GenMRProcContext.GenMapRedCtx> getMapCurrCtx()
public void setMapCurrCtx(LinkedHashMap<Operator<? extends OperatorDesc>,GenMRProcContext.GenMapRedCtx> mapCurrCtx)
mapCurrCtx
- operator to task mappingspublic Task<? extends Serializable> getCurrTask()
public void setCurrTask(Task<? extends Serializable> currTask)
currTask
- current taskpublic Operator<? extends OperatorDesc> getCurrTopOp()
public void setCurrTopOp(Operator<? extends OperatorDesc> currTopOp)
currTopOp
- current top operatorpublic UnionOperator getCurrUnionOp()
public void setCurrUnionOp(UnionOperator currUnionOp)
currUnionOp
- current union operatorpublic String getCurrAliasId()
public void setCurrAliasId(String currAliasId)
currAliasId
- current top aliaspublic GenMRProcContext.GenMRUnionCtx getUnionTask(UnionOperator op)
public void setUnionTask(UnionOperator op, GenMRProcContext.GenMRUnionCtx uTask)
public Set<ReadEntity> getInputs()
public Set<WriteEntity> getOutputs()
public HiveConf getConf()
public void setConf(HiveConf conf)
conf
- the conf to setpublic DependencyCollectionTask getDependencyTaskForMultiInsert()
public Map<FileSinkDesc,Task<? extends Serializable>> getLinkedFileDescTasks()
public void setLinkedFileDescTasks(Map<FileSinkDesc,Task<? extends Serializable>> linkedFileDescTasks)
Copyright © 2017 The Apache Software Foundation. All rights reserved.