Statement createStatement() throws SQLException {
    Statement stmnt = getDatabaseConnection().getConnection().createStatement();
    if (getOpts().timeout > -1) {
      stmnt.setQueryTimeout(getOpts().timeout);
    }
    if (signalHandler != null) {
      signalHandler.setStatement(stmnt);
    }

    // If no fetch size is specified in beeline, let the driver figure it out
    final int fetchSize = getOpts().getFetchSize();
    if (fetchSize >= 0) {
      stmnt.setFetchSize(fetchSize);
    }

    return stmnt;
  }
Output a progress indicator to the console.

@param cur
         the current progress
@param max
         the maximum progress, or -1 if unknown
beeline/src/java/org/apache/hive/beeline/BeeLine.java