public boolean record(String line) {
    if (beeLine.getRecordOutputFile() == null) {
      return startRecording(line);
    } else {
      return stopRecording(line);
    }
  }
Save or stop saving all output to a file.
beeline/src/java/org/apache/hive/beeline/Commands.java