code: public void markSent() {
      sent_to_client = true;
      overall_stats.put(QueryStat.TOTAL_TIME, DateTime.nanoTime() - query_start_ns);
      LOG.info("Completing query=" + JSON.serializeToString(this));
      QUERY_LOG.info(this.toString());
    }
docs: Marks the query as complete and logs it to the proper logs. This is called
  after the data has been sent to the client.