private void processScheduledQueryAstNode(ScheduledQuery schq, ASTNode node) throws SemanticException {
    switch (node.getType()) {
    case HiveParser.TOK_ENABLE:
      schq.setEnabled(true);
      return;
    case HiveParser.TOK_DISABLE:
      schq.setEnabled(false);
      return;
    case HiveParser.TOK_CRON:
      schq.setSchedule(unescapeSQLString(node.getChild(0).getText()));
      return;
    case HiveParser.TOK_SCHEDULE:
      schq.setSchedule(interpretEveryNode(parseInteger(node.getChild(0).getChild(0), 1), node.getChild(1).getType(), parseTimeStamp(node.getChild(2))));
      return;
    case HiveParser.TOK_EXECUTED_AS:
      schq.setUser(unescapeSQLString(node.getChild(0).getText()));
      return;
    case HiveParser.TOK_QUERY:
      schq.setQuery(unparseTree(node.getChild(0)));
      return;
    case HiveParser.TOK_EXECUTE:
      int now = (int) (System.currentTimeMillis() / 1000);
      schq.setNextExecution(now);
      return;
    default:
      throw new SemanticException("Unexpected token: " + node.getType());
    }
  }
Composes an overlay object.

Output is a flattened view of the input objects.
having the value from the first one which has it defined from the overlays.
ql/src/java/org/apache/hadoop/hive/ql/parse/ScheduledQueryAnalyzer.java