org.apache.hive.tmpl.QueryProfileTmplImpl Maven / Gradle / Ivy
// Autogenerated Jamon implementation
// /Users/pvary/dev/upstream/hive_rel/service/src/jamon/org/apache/hive/tmpl/QueryProfileTmpl.jamon
package org.apache.hive.tmpl;
// 24, 1
import java.util.*;
// 25, 1
import org.apache.hadoop.hive.ql.QueryDisplay;
// 26, 1
import org.apache.hadoop.hive.ql.QueryInfo;
// 27, 1
import org.apache.hadoop.hive.conf.HiveConf;
// 28, 1
import org.apache.hive.service.cli.operation.OperationLogManager;
public class QueryProfileTmplImpl
extends org.jamon.AbstractTemplateImpl
implements org.apache.hive.tmpl.QueryProfileTmpl.Intf
{
private final QueryInfo queryInfo;
private final HiveConf hiveConf;
// 30, 1
private boolean showGraph = false;
private boolean showStats = false;
protected static org.apache.hive.tmpl.QueryProfileTmpl.ImplData __jamon_setOptionalArguments(org.apache.hive.tmpl.QueryProfileTmpl.ImplData p_implData)
{
return p_implData;
}
public QueryProfileTmplImpl(org.jamon.TemplateManager p_templateManager, org.apache.hive.tmpl.QueryProfileTmpl.ImplData p_implData)
{
super(p_templateManager, __jamon_setOptionalArguments(p_implData));
queryInfo = p_implData.getQueryInfo();
hiveConf = p_implData.getHiveConf();
}
public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 34, 1
jamonWriter.write("\n\n\n \n \n HiveServer2 \n \n \n\n \n \n \n\n \n \n \n ");
// 52, 5
if (hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_SHOW_GRAPH) &&
hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_EXPLAIN_OUTPUT) )
{
// 53, 82
jamonWriter.write("\n ");
// 54, 7
showGraph = true;
// 55, 7
if (hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_WEBUI_SHOW_STATS) )
{
// 55, 83
jamonWriter.write("\n ");
// 56, 9
showStats = true;
}
// 57, 13
jamonWriter.write("\n ");
}
// 58, 11
jamonWriter.write("\n ");
// 59, 5
if (showGraph )
{
// 59, 22
jamonWriter.write("\n \n \n \n ");
}
// 63, 11
jamonWriter.write("\n \n\n \n \n
\n
\n ");
}
// 96, 5
else
{
// 96, 12
jamonWriter.write("\n\n\n Query not found. It may have been deleted, increase hive.server2.webui.max.historic.queries\n to retain more historic query information.
\n\n
\n\n\n\n\n\n\n");
// 288, 1
if (showGraph )
{
// 288, 18
jamonWriter.write("\n \n");
}
// 297, 7
jamonWriter.write("\n\n\n\n
\n \n
\n Query Information: "); // 102, 34 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(queryInfo.getQueryDisplay() == null ? "Unknown" : queryInfo.getQueryDisplay().getQueryString()), jamonWriter); // 102, 134 jamonWriter.write("
\n\n\n\n
\n\n
\n\n ");
}
// 135, 10
jamonWriter.write("\n\n- \n
- Base Profile \n
- Stages \n
- Query Plan \n
- Performance Logging \n
- Operation Log \n
\n
\n \n ");
// 118, 19
{
// 118, 19
__jamon_innerUnit__baseProfile(jamonWriter, queryInfo );
}
// 118, 59
jamonWriter.write("\n
\n \n ");
// 121, 19
{
// 121, 19
__jamon_innerUnit__stages(jamonWriter, queryInfo );
}
// 121, 54
jamonWriter.write("\n
\n \n ");
// 124, 19
{
// 124, 19
__jamon_innerUnit__queryPlan(jamonWriter, queryInfo );
}
// 124, 57
jamonWriter.write("\n
\n \n ");
// 127, 19
{
// 127, 19
__jamon_innerUnit__perfLogging(jamonWriter, queryInfo );
}
// 127, 59
jamonWriter.write("\n
\n \n ");
// 130, 19
{
// 130, 19
__jamon_innerUnit__operationLog(jamonWriter, queryInfo );
}
// 130, 60
jamonWriter.write("\n
\n