org.apache.hive.tmpl.QueryProfileTmplImpl Maven / Gradle / Ivy
The newest version!
// Autogenerated Jamon implementation
// /Users/zdeng/workspace/github/hive/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