22
33import com .databricks .jdbc .common .AuthFlow ;
44import com .databricks .jdbc .common .AuthMech ;
5- import com .databricks .jdbc .common .DatabricksClientType ;
65import com .databricks .sdk .support .ToStringer ;
76import com .fasterxml .jackson .annotation .JsonProperty ;
7+ import java .util .List ;
88
99public class DriverConnectionParameters {
1010 @ JsonProperty ("http_path" )
1111 String httpPath ;
1212
1313 @ JsonProperty ("mode" )
14- DatabricksClientType driverMode ;
14+ String driverMode ;
1515
1616 @ JsonProperty ("host_info" )
1717 HostDetails hostDetails ;
@@ -106,13 +106,43 @@ public class DriverConnectionParameters {
106106 @ JsonProperty ("enable_token_cache" )
107107 boolean enableTokenCache ;
108108
109+ @ JsonProperty ("auth_endpoint" )
110+ String authEndpoint ;
111+
112+ @ JsonProperty ("token_endpoint" )
113+ String tokenEndpoint ;
114+
115+ @ JsonProperty ("non_proxy_hosts" )
116+ List <String > nonProxyHosts ;
117+
118+ @ JsonProperty ("http_connection_pool_size" )
119+ int httpConnectionPoolSize ;
120+
121+ @ JsonProperty ("enable_sea_hybrid_results" )
122+ boolean enableSeaHybridResults ;
123+
124+ @ JsonProperty ("enable_complex_datatype_support" )
125+ boolean enableComplexSupport ;
126+
127+ @ JsonProperty ("allow_self_signed_support" )
128+ boolean allowSelfSignedSupport ;
129+
130+ @ JsonProperty ("use_system_trust_store" )
131+ boolean useSystemTrustStore ;
132+
133+ @ JsonProperty ("rows_fetched_per_block" )
134+ int rowsFetchedPerBlock ;
135+
136+ @ JsonProperty ("async_poll_interval_millis" )
137+ int asyncPollIntervalMillis ;
138+
109139 public DriverConnectionParameters setHttpPath (String httpPath ) {
110140 this .httpPath = httpPath ;
111141 return this ;
112142 }
113143
114- public DriverConnectionParameters setDriverMode (DatabricksClientType clientType ) {
115- this .driverMode = clientType ;
144+ public DriverConnectionParameters setDriverMode (String clientType ) {
145+ this .driverMode = clientType . toString () ;
116146 return this ;
117147 }
118148
@@ -276,6 +306,56 @@ public DriverConnectionParameters setEnableTokenCache(boolean enableTokenCache)
276306 return this ;
277307 }
278308
309+ public DriverConnectionParameters setAuthEndpoint (String authEndpoint ) {
310+ this .authEndpoint = authEndpoint ;
311+ return this ;
312+ }
313+
314+ public DriverConnectionParameters setTokenEndpoint (String tokenEndpoint ) {
315+ this .tokenEndpoint = tokenEndpoint ;
316+ return this ;
317+ }
318+
319+ public DriverConnectionParameters setNonProxyHosts (List <String > nonProxyHosts ) {
320+ this .nonProxyHosts = nonProxyHosts ;
321+ return this ;
322+ }
323+
324+ public DriverConnectionParameters setHttpConnectionPoolSize (int httpConnectionPoolSize ) {
325+ this .httpConnectionPoolSize = httpConnectionPoolSize ;
326+ return this ;
327+ }
328+
329+ public DriverConnectionParameters setEnableSeaHybridResults (boolean enableSeaHybridResults ) {
330+ this .enableSeaHybridResults = enableSeaHybridResults ;
331+ return this ;
332+ }
333+
334+ public DriverConnectionParameters setEnableComplexSupport (boolean enableComplexSupport ) {
335+ this .enableComplexSupport = enableComplexSupport ;
336+ return this ;
337+ }
338+
339+ public DriverConnectionParameters setAllowSelfSignedSupport (boolean allowSelfSignedSupport ) {
340+ this .allowSelfSignedSupport = allowSelfSignedSupport ;
341+ return this ;
342+ }
343+
344+ public DriverConnectionParameters setUseSystemTrustStore (boolean useSystemTrustStore ) {
345+ this .useSystemTrustStore = useSystemTrustStore ;
346+ return this ;
347+ }
348+
349+ public DriverConnectionParameters setRowsFetchedPerBlock (int rowsFetchedPerBlock ) {
350+ this .rowsFetchedPerBlock = rowsFetchedPerBlock ;
351+ return this ;
352+ }
353+
354+ public DriverConnectionParameters setAsyncPollIntervalMillis (int asyncPollIntervalMillis ) {
355+ this .asyncPollIntervalMillis = asyncPollIntervalMillis ;
356+ return this ;
357+ }
358+
279359 @ Override
280360 public String toString () {
281361 return new ToStringer (DriverConnectionParameters .class )
@@ -300,6 +380,7 @@ public String toString() {
300380 .add ("acceptUndeterminedCertificateRevocation" , acceptUndeterminedCertificateRevocation )
301381 .add ("enableArrow" , enableArrow )
302382 .add ("enableDirectResults" , enableDirectResults )
383+ .add ("enableJwtAssertion" , enableJwtAssertion )
303384 .add ("jwtKeyFile" , jwtKeyFile )
304385 .add ("jwtAlgorithm" , jwtAlgorithm )
305386 .add ("googleServiceAccount" , googleServiceAccount )
@@ -311,6 +392,16 @@ public String toString() {
311392 .add ("stringColumnLength" , stringColumnLength )
312393 .add ("socketTimeout" , socketTimeout )
313394 .add ("enableTokenCache" , enableTokenCache )
395+ .add ("authEndpoint" , authEndpoint )
396+ .add ("tokenEndpoint" , tokenEndpoint )
397+ .add ("nonProxyHosts" , nonProxyHosts )
398+ .add ("httpConnectionPoolSize" , httpConnectionPoolSize )
399+ .add ("enableSeaHybridResults" , enableSeaHybridResults )
400+ .add ("enableComplexSupport" , enableComplexSupport )
401+ .add ("allowSelfSignedSupport" , allowSelfSignedSupport )
402+ .add ("useSystemTrustStore" , useSystemTrustStore )
403+ .add ("rowsFetchedPerBlock" , rowsFetchedPerBlock )
404+ .add ("asyncPollIntervalMillis" , asyncPollIntervalMillis )
314405 .toString ();
315406 }
316407}
0 commit comments