org.apache.hadoop.hive.ql
Class QueryPlan
java.lang.Object
org.apache.hadoop.hive.ql.QueryPlan
- All Implemented Interfaces:
- Serializable
public class QueryPlan
- extends Object
- implements Serializable
QueryPlan can be serialized to disk so that we can restart/resume the
progress of it in the future, either within or outside of the current
jvm.
- See Also:
- Serialized Form
linfo
protected LineageInfo linfo
- Lineage information for the query.
QueryPlan
public QueryPlan()
QueryPlan
public QueryPlan(String queryString,
BaseSemanticAnalyzer sem,
Long startTime)
getQueryStr
public String getQueryStr()
getQueryId
public String getQueryId()
getQueryPlan
public Query getQueryPlan()
throws IOException
- Throws:
IOException
getJSONValue
public String getJSONValue(Object value)
getJSONKeyValue
public String getJSONKeyValue(Object key,
Object value)
getJSONMap
public String getJSONMap(Map map)
getJSONQuery
public String getJSONQuery(Query query)
toString
public String toString()
- Overrides:
toString
in class Object
toThriftJSONString
public String toThriftJSONString()
throws IOException
- Throws:
IOException
toBinaryString
public String toBinaryString()
throws IOException
- Throws:
IOException
setStarted
public void setStarted()
setDone
public void setDone()
getStarted
public HashSet<String> getStarted()
getDone
public HashSet<String> getDone()
getRootTasks
public ArrayList<Task<? extends Serializable>> getRootTasks()
setRootTasks
public void setRootTasks(ArrayList<Task<? extends Serializable>> rootTasks)
getFetchTask
public FetchTask getFetchTask()
setFetchTask
public void setFetchTask(FetchTask fetchTask)
getInputs
public HashSet<ReadEntity> getInputs()
setInputs
public void setInputs(HashSet<ReadEntity> inputs)
getOutputs
public HashSet<WriteEntity> getOutputs()
setOutputs
public void setOutputs(HashSet<WriteEntity> outputs)
getIdToTableNameMap
public HashMap<String,String> getIdToTableNameMap()
setIdToTableNameMap
public void setIdToTableNameMap(HashMap<String,String> idToTableNameMap)
getQueryString
public String getQueryString()
setQueryString
public void setQueryString(String queryString)
getQuery
public Query getQuery()
getReducerTimeStatsPerJobList
public List<ReducerTimeStatsPerJob> getReducerTimeStatsPerJobList()
setQuery
public void setQuery(Query query)
getCounters
public HashMap<String,HashMap<String,Long>> getCounters()
setCounters
public void setCounters(HashMap<String,HashMap<String,Long>> counters)
setQueryId
public void setQueryId(String queryId)
setDone
public void setDone(HashSet<String> done)
setStarted
public void setStarted(HashSet<String> started)
getLineageInfo
public LineageInfo getLineageInfo()
- Gets the lineage information.
- Returns:
- LineageInfo associated with the query.
setLineageInfo
public void setLineageInfo(LineageInfo linfo)
- Sets the lineage information.
- Parameters:
linfo
- The LineageInfo structure that is set in the optimization phase.
getTableAccessInfo
public TableAccessInfo getTableAccessInfo()
- Gets the table access information.
- Returns:
- TableAccessInfo associated with the query.
setTableAccessInfo
public void setTableAccessInfo(TableAccessInfo tableAccessInfo)
- Sets the table access information.
- Parameters:
taInfo
- The TableAccessInfo structure that is set right before the optimization phase.
getQueryProperties
public QueryProperties getQueryProperties()
getQueryStartTime
public Long getQueryStartTime()
setQueryStartTime
public void setQueryStartTime(Long queryStartTime)
Copyright © 2013 The Apache Software Foundation