sql/src/main/java/org/apache/druid/sql/avatica/DruidConnection.java
/**
   * Closes this connection if it has no statements.
   *
   * @return true if closed
   */
Closes this connection if it has no statements.
@return true if closed
Closes this connection if it has no statements . @return true if closed
public boolean closeIfEmpty()
  {
    synchronized (connectionLock) {
      if (statements.isEmpty()) {
        close();
        return true;
      } else {
        return false;
      }
    }
  }
public boolean closeIfEmpty ( ) { synchronized ( connectionLock ) { if ( statements . isEmpty ( ) ) { close ( ) ; return true ; } else { return false ; } } }
Closes this connection if it has no statements.
Closes this connection if it has no statements .