private Schema getSchema() {
    Schema sch = new Schema();
    sch.addToFieldSchemas(new FieldSchema("User Name", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Ip Addr", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Execution Engine", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Session Id", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Session Active Time (s)", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Session Idle Time (s)", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Query ID", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("State", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Opened Timestamp (s)", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Elapsed Time (s)", STRING_TYPE_NAME, ""));
    sch.addToFieldSchemas(new FieldSchema("Runtime (s)", STRING_TYPE_NAME, ""));
    sch.putToProperties(SERIALIZATION_NULL_FORMAT, defaultNullString);
    return sch;
  }
Creates a Schema object with running operation details

@return
ql/src/java/org/apache/hadoop/hive/ql/processors/ShowProcessListProcessor.java