public class QueryDisplay extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryDisplay.Phase |
static class |
QueryDisplay.TaskDisplay |
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER
Preffered objectmapper for this class.
|
| Constructor and Description |
|---|
QueryDisplay() |
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
public void updateTaskStatus(Task<?> tTask)
public void updateTaskStatistics(MapRedStats mapRedStats, org.apache.hadoop.mapred.RunningJob rj, String taskId) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic String getFullLogLocation()
public void setTaskResult(String taskId, TaskResult result)
public List<QueryDisplay.TaskDisplay> getTaskDisplays()
public void setQueryStr(String queryStr)
public String getQueryString()
public String getExplainPlan()
public void setExplainPlan(String explainPlan)
public Map<String,Long> getHmsTimings(QueryDisplay.Phase phase)
phase - phase of querypublic void setHmsTimings(QueryDisplay.Phase phase, Map<String,Long> hmsTimings)
phase - phase of queryhmsTimings - map of HMS Client method-calls and duration in miliseconds, during given phase.public Map<String,Long> getPerfLogStarts(QueryDisplay.Phase phase)
phase - phase of querypublic void setPerfLogStarts(QueryDisplay.Phase phase, Map<String,Long> perfLogStarts)
phase - phase of queryperfLogStarts - map of PerfLogger call-trace name and start time in miliseconds, during given phase.public Map<String,Long> getPerfLogEnds(QueryDisplay.Phase phase)
phase - phase of querypublic void setPerfLogEnds(QueryDisplay.Phase phase, Map<String,Long> perfLogEnds)
phase - phase of queryperfLogEnds - map of PerfLogger call-trace name and end time in miliseconds, during given phase.public Map<String,Long> getPerfLogTimes(QueryDisplay.Phase phase)
phase - phase of querypublic String getErrorMessage()
public void setErrorMessage(String errorMessage)
public String getQueryId()
public void setQueryId(String queryId)
public long getQueryStartTime()
Copyright © 2022 The Apache Software Foundation. All rights reserved.