private String toConnectionInfoString() {
    return "{ metastore-uri: " + metastoreUri + ", " +
      "database: " + database + ", " +
      "table: " + table + ", " +
      "partitioned-table: " + isPartitionedTable() + ", " +
      "dynamic-partitioning: " + isDynamicPartitioning() + ", " +
      "username: " + username + ", " +
      "secure-mode: " + secureMode + ", " +
      "record-writer: " + recordWriter.getClass().getSimpleName() + ", " +
      "agent-info: " + agentInfo + ", " +
      "writeId: " + writeId +  ", " +
      "statementId: " + statementId + " }";
  }
Returning a streaming connection to hive.

@return - hive streaming connection
streaming/src/java/org/apache/hive/streaming/HiveStreamingConnection.java