public Session build() {
      if (nodeUrls != null
          && (!SessionConfig.DEFAULT_HOST.equals(host) || rpcPort != SessionConfig.DEFAULT_PORT)) {
        throw new IllegalArgumentException(
            "You should specify either nodeUrls or (host + rpcPort), but not both");
      }
      return new Session(this);
    }
@param insertGroup connection to request map
@param insertConsumer insert function
@param <T>
    <ul>
      <li>{@link TSInsertRecordsReq}
      <li>{@link TSInsertStringRecordsReq}
      <li>{@link TSInsertTabletsReq}
    </ul>
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java