public class ParseContext extends Object
public ParseContext()
public ParseContext(HiveConf conf, HashMap<TableScanOperator,ExprNodeDesc> opToPartPruner, HashMap<TableScanOperator,PrunedPartitionList> opToPartList, HashMap<String,Operator<? extends OperatorDesc>> topOps, Set<JoinOperator> joinOps, Set<SMBMapJoinOperator> smbMapJoinOps, List<LoadTableDesc> loadTableWork, List<LoadFileDesc> loadFileWork, Context ctx, HashMap<String,String> idToTableNameMap, int destTableId, UnionProcContext uCtx, List<AbstractMapJoinOperator<? extends MapJoinDesc>> listMapJoinOpsNoReducer, Map<String,PrunedPartitionList> prunedPartitions, HashMap<TableScanOperator,FilterDesc.SampleDesc> opToSamplePruner, GlobalLimitCtx globalLimitCtx, HashMap<String,SplitSample> nameToSplitSample, HashSet<ReadEntity> semanticInputs, List<Task<? extends Serializable>> rootTasks, Map<TableScanOperator,Map<String,ExprNodeDesc>> opToPartToSkewedPruner, Map<String,ReadEntity> viewAliasToInput, List<ReduceSinkOperator> reduceSinkOperatorsAddedByEnforceBucketingSorting, BaseSemanticAnalyzer.AnalyzeRewriteContext analyzeRewrite, CreateTableDesc createTableDesc, QueryProperties queryProperties)
conf
- qb
- current QBast
- current parse treeopToPartPruner
- map from table scan operator to partition pruneropToPartList
- topOps
- list of operators for the top queryopParseCtx
- operator parse context - contains a mapping from operator to
operator parse state (row resolver etc.)joinOps
- context needed join processing (map join specifically)loadTableWork
- list of destination tables being loadedloadFileWork
- list of destination files being loadedctx
- parse contextidToTableNameMap
- uCtx
- destTableId
- listMapJoinOpsNoReducer
- list of map join operators with no reducergroupOpToInputTables
- prunedPartitions
- opToSamplePruner
- operator to sample pruner mapglobalLimitCtx
- nameToSplitSample
- rootTasks
- public Context getContext()
public void setContext(Context ctx)
ctx
- the context to setpublic HiveConf getConf()
public void setConf(HiveConf conf)
conf
- the conf to setpublic HashMap<TableScanOperator,ExprNodeDesc> getOpToPartPruner()
public void setOpToPartPruner(HashMap<TableScanOperator,ExprNodeDesc> opToPartPruner)
opToPartPruner
- the opToPartPruner to setpublic HashMap<TableScanOperator,PrunedPartitionList> getOpToPartList()
public List<ReduceSinkOperator> getReduceSinkOperatorsAddedByEnforceBucketingSorting()
public void setReduceSinkOperatorsAddedByEnforceBucketingSorting(List<ReduceSinkOperator> reduceSinkOperatorsAddedByEnforceBucketingSorting)
public HashMap<String,Operator<? extends OperatorDesc>> getTopOps()
public void setTopOps(HashMap<String,Operator<? extends OperatorDesc>> topOps)
topOps
- the topOps to setpublic HashMap<String,SplitSample> getNameToSplitSample()
public void setNameToSplitSample(HashMap<String,SplitSample> nameToSplitSample)
public List<LoadTableDesc> getLoadTableWork()
public void setLoadTableWork(List<LoadTableDesc> loadTableWork)
loadTableWork
- the loadTableWork to setpublic List<LoadFileDesc> getLoadFileWork()
public void setLoadFileWork(List<LoadFileDesc> loadFileWork)
loadFileWork
- the loadFileWork to setpublic int getDestTableId()
public void setDestTableId(int destTableId)
public UnionProcContext getUCtx()
public void setUCtx(UnionProcContext uCtx)
public Set<JoinOperator> getJoinOps()
public void setJoinOps(Set<JoinOperator> joinOps)
joinOps
- the joinOps to setpublic List<AbstractMapJoinOperator<? extends MapJoinDesc>> getListMapJoinOpsNoReducer()
public void setListMapJoinOpsNoReducer(List<AbstractMapJoinOperator<? extends MapJoinDesc>> listMapJoinOpsNoReducer)
listMapJoinOpsNoReducer
- the listMapJoinOpsNoReducer to setpublic HashMap<TableScanOperator,FilterDesc.SampleDesc> getOpToSamplePruner()
public void setOpToSamplePruner(HashMap<TableScanOperator,FilterDesc.SampleDesc> opToSamplePruner)
opToSamplePruner
- the opToSamplePruner to setpublic Map<String,PrunedPartitionList> getPrunedPartitions()
public void setPrunedPartitions(Map<String,PrunedPartitionList> prunedPartitions)
prunedPartitions
- public void setLineageInfo(LineageInfo lInfo)
lInfo
- The lineage information.public LineageInfo getLineageInfo()
public Set<MapJoinOperator> getMapJoinOps()
public void setMapJoinOps(Set<MapJoinOperator> mapJoinOps)
public Set<SMBMapJoinOperator> getSmbMapJoinOps()
public void setSmbMapJoinOps(Set<SMBMapJoinOperator> smbMapJoinOps)
public GlobalLimitCtx getGlobalLimitCtx()
public void setGlobalLimitCtx(GlobalLimitCtx globalLimitCtx)
public HashSet<ReadEntity> getSemanticInputs()
public void replaceRootTask(Task<? extends Serializable> rootTask, List<? extends Task<? extends Serializable>> tasks)
public FetchTask getFetchTask()
public void setFetchTask(FetchTask fetchTask)
public PrunedPartitionList getPrunedPartitions(String alias, TableScanOperator ts) throws SemanticException
SemanticException
public Map<TableScanOperator,Map<String,ExprNodeDesc>> getOpToPartToSkewedPruner()
public void setOpPartToSkewedPruner(HashMap<TableScanOperator,Map<String,ExprNodeDesc>> opToPartToSkewedPruner)
opToPartToSkewedPruner
- the opToSkewedPruner to setpublic Map<String,ReadEntity> getViewAliasToInput()
public QueryProperties getQueryProperties()
public void setQueryProperties(QueryProperties queryProperties)
public TableDesc getFetchTableDesc()
public void setFetchTabledesc(TableDesc fetchTableDesc)
public Operator<?> getFetchSource()
public void setFetchSource(Operator<?> fetchSource)
public ListSinkOperator getFetchSink()
public void setFetchSink(ListSinkOperator fetchSink)
public BaseSemanticAnalyzer.AnalyzeRewriteContext getAnalyzeRewrite()
public void setAnalyzeRewrite(BaseSemanticAnalyzer.AnalyzeRewriteContext analyzeRewrite)
public CreateTableDesc getCreateTable()
public void setCreateTable(CreateTableDesc createTableDesc)
Copyright © 2017 The Apache Software Foundation. All rights reserved.