All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hive.tmpl.QueryProfileTmplImpl Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
// Autogenerated Jamon implementation
// /Users/chao/git/hive/service/src/jamon/org/apache/hive/tmpl/QueryProfileTmpl.jamon

package org.apache.hive.tmpl;

// 23, 1
import java.util.*;
// 24, 1
import org.apache.hadoop.hive.ql.QueryDisplay;
// 25, 1
import org.apache.hive.service.cli.operation.SQLOperationDisplay;

public class QueryProfileTmplImpl
  extends org.jamon.AbstractTemplateImpl
  implements org.apache.hive.tmpl.QueryProfileTmpl.Intf

{
  private final SQLOperationDisplay sod;
  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));
    sod = p_implData.getSod();
  }
  
  public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
    throws java.io.IOException
  {
    // 27, 1
    jamonWriter.write("\n\n\n  \n    \n    HiveServer2\n    \n    \n\n    \n    \n    \n  \n\n  \n  
\n
\n
\n \n \"Hive\n
\n \n
\n
\n
\n\n\n "); // 68, 5 if (sod == null ) { // 68, 24 jamonWriter.write("\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 "); } // 73, 5 else { // 73, 12 jamonWriter.write("\n\n\n
\n
\n
\n

Query Information: "); // 79, 34 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getQueryDisplay() == null ? "Unknown" : sod.getQueryDisplay().getQueryString()), jamonWriter); // 79, 122 jamonWriter.write("

\n
\n
\n
\n\n\n
\n \n
\n
\n "); // 94, 19 { // 94, 19 __jamon_innerUnit__baseProfile(jamonWriter, sod ); } // 94, 47 jamonWriter.write("\n
\n
\n "); // 97, 19 { // 97, 19 __jamon_innerUnit__stages(jamonWriter, sod ); } // 97, 42 jamonWriter.write("\n
\n
\n "); // 100, 19 { // 100, 19 __jamon_innerUnit__queryPlan(jamonWriter, sod ); } // 100, 45 jamonWriter.write("\n
\n
\n "); // 103, 19 { // 103, 19 __jamon_innerUnit__perfLogging(jamonWriter, sod ); } // 103, 47 jamonWriter.write("\n
\n
\n
\n\n "); } // 108, 10 jamonWriter.write("\n\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); } // 118, 1 private void __jamon_innerUnit__baseProfile(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final SQLOperationDisplay sod) throws java.io.IOException { // 122, 5 jamonWriter.write("\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n "); // 155, 9 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getErrorMessage() != null ) { // 155, 97 jamonWriter.write("\n \n \n \n \n "); } // 160, 15 jamonWriter.write("\n \n \n \n \n
User Name"); // 125, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getUserName()), jamonWriter); // 125, 40 jamonWriter.write("
Query String"); // 129, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getQueryDisplay() == null ? "Unknown" : sod.getQueryDisplay().getQueryString()), jamonWriter); // 129, 105 jamonWriter.write("
Id"); // 133, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getQueryDisplay() == null ? "Unknown" : sod.getQueryDisplay().getQueryId()), jamonWriter); // 133, 101 jamonWriter.write("
Execution Engine"); // 137, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getExecutionEngine()), jamonWriter); // 137, 47 jamonWriter.write("\n
State"); // 141, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getState()), jamonWriter); // 141, 37 jamonWriter.write("
Opened Timestamp"); // 145, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(new Date(sod.getBeginTime())), jamonWriter); // 145, 51 jamonWriter.write("
Opened (s)"); // 149, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getElapsedTime()/1000), jamonWriter); // 149, 48 jamonWriter.write("
Closed Timestamp"); // 153, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getEndTime() == null ? "Open" : new Date(sod.getEndTime())), jamonWriter); // 153, 85 jamonWriter.write("
Error"); // 158, 21 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getQueryDisplay().getErrorMessage()), jamonWriter); // 158, 66 jamonWriter.write("
Latency (s)"); // 163, 17 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getRuntime() == null ? "Not finished" : sod.getRuntime()/1000), jamonWriter); // 163, 88 jamonWriter.write("
\n"); } // 168, 1 private void __jamon_innerUnit__stages(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final SQLOperationDisplay sod) throws java.io.IOException { // 172, 4 jamonWriter.write("\n \n \n \n \n \n \n \n \n \n\n "); // 183, 8 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getTaskDisplays() != null ) { // 183, 96 jamonWriter.write("\n "); // 184, 12 for (QueryDisplay.TaskDisplay taskDisplay : sod.getQueryDisplay().getTaskDisplays() ) { // 184, 99 jamonWriter.write("\n \n \n \n \n \n \n \n \n \n "); } // 194, 19 jamonWriter.write("\n "); } // 195, 14 jamonWriter.write("\n
Stage IdStatusBegin TimeEnd TimeElapsed Time (s)Requires LockRetry If Fail
"); // 186, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.getTaskId() + ":" + taskDisplay.getTaskType()), jamonWriter); // 186, 87 jamonWriter.write(""); // 187, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.getStatus()), jamonWriter); // 187, 53 jamonWriter.write(""); // 188, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.getBeginTime() == null ? "" : new Date(taskDisplay.getBeginTime())), jamonWriter); // 188, 108 jamonWriter.write(""); // 189, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.getEndTime() == null ? "" : new Date(taskDisplay.getEndTime())), jamonWriter); // 189, 104 jamonWriter.write(""); // 190, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.getElapsedTime() == null ? "" : taskDisplay.getElapsedTime()/1000), jamonWriter); // 190, 107 jamonWriter.write(" (s) "); // 191, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.isRequireLock()), jamonWriter); // 191, 57 jamonWriter.write(""); // 192, 24 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(taskDisplay.isRetryIfFail()), jamonWriter); // 192, 57 jamonWriter.write("
\n"); } // 200, 1 private void __jamon_innerUnit__queryPlan(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final SQLOperationDisplay sod) throws java.io.IOException { // 204, 5 jamonWriter.write("
\n
Explain plan
\n
\n
\n        ");
    // 208, 9
    org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(sod.getQueryDisplay() == null ? "Unknown" : sod.getQueryDisplay().getExplainPlan()), jamonWriter);
    // 208, 97
    jamonWriter.write("\n        
\n
\n
\n"); } // 215, 1 private void __jamon_innerUnit__perfLogging(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter, final SQLOperationDisplay sod) throws java.io.IOException { // 219, 5 jamonWriter.write("
\n

Compile-time metadata operations

\n \n \n \n \n \n\n "); // 227, 11 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getHmsTimings(QueryDisplay.Phase.COMPILATION) != null ) { // 227, 127 jamonWriter.write("\n "); // 228, 14 for (Map.Entry time : sod.getQueryDisplay().getHmsTimings(QueryDisplay.Phase.COMPILATION).entrySet() ) { // 228, 132 jamonWriter.write("\n \n \n \n \n "); } // 233, 21 jamonWriter.write("\n "); } // 234, 16 jamonWriter.write("\n
Call NameTime (ms)
"); // 230, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getKey()), jamonWriter); // 230, 45 jamonWriter.write(""); // 231, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getValue()), jamonWriter); // 231, 47 jamonWriter.write("
\n
\n\n
\n

Execution-time metadata operations

\n \n \n \n \n \n\n "); // 246, 11 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getHmsTimings(QueryDisplay.Phase.EXECUTION) != null ) { // 246, 125 jamonWriter.write("\n "); // 247, 14 for (Map.Entry time : sod.getQueryDisplay().getHmsTimings(QueryDisplay.Phase.EXECUTION).entrySet() ) { // 247, 130 jamonWriter.write("\n \n \n \n \n "); } // 252, 21 jamonWriter.write("\n "); } // 253, 16 jamonWriter.write("\n
Call NameTime (ms)
"); // 249, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getKey()), jamonWriter); // 249, 45 jamonWriter.write(""); // 250, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getValue()), jamonWriter); // 250, 47 jamonWriter.write("
\n
\n\n
\n

Compile-Time Perf-Logger

\n \n \n \n \n \n\n "); // 265, 11 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getPerfLogTimes(QueryDisplay.Phase.COMPILATION) != null ) { // 265, 129 jamonWriter.write("\n "); // 266, 14 for (Map.Entry time : sod.getQueryDisplay().getPerfLogTimes(QueryDisplay.Phase.COMPILATION).entrySet() ) { // 266, 135 jamonWriter.write("\n \n \n \n \n "); } // 271, 21 jamonWriter.write("\n "); } // 272, 16 jamonWriter.write("\n
Compile-time Call NameTime (ms)
"); // 268, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getKey()), jamonWriter); // 268, 45 jamonWriter.write(""); // 269, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getValue()), jamonWriter); // 269, 47 jamonWriter.write("
\n
\n\n
\n

Execution-Time Perf-Logger

\n \n \n \n \n \n\n "); // 284, 11 if (sod.getQueryDisplay() != null && sod.getQueryDisplay().getPerfLogTimes(QueryDisplay.Phase.EXECUTION) != null ) { // 284, 127 jamonWriter.write("\n "); // 285, 14 for (Map.Entry time : sod.getQueryDisplay().getPerfLogTimes(QueryDisplay.Phase.EXECUTION).entrySet() ) { // 285, 133 jamonWriter.write("\n \n \n \n \n "); } // 290, 21 jamonWriter.write("\n "); } // 291, 16 jamonWriter.write("\n
Execution-time Call NameTime (ms)
"); // 287, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getKey()), jamonWriter); // 287, 45 jamonWriter.write(""); // 288, 26 org.jamon.escaping.Escaping.HTML.write(org.jamon.emit.StandardEmitter.valueOf(time.getValue()), jamonWriter); // 288, 47 jamonWriter.write("
\n
\n"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy