Package com.firebolt.jdbc.client.query
Class FireboltCoreQueryParameterProvider
java.lang.Object
com.firebolt.jdbc.client.query.FireboltCoreQueryParameterProvider
- All Implemented Interfaces:
QueryParameterProvider
Creates the query parameters that will be sent to the core backend
-
Field Summary
Fields inherited from interface com.firebolt.jdbc.client.query.QueryParameterProvider
TAB_SEPARATED_WITH_NAMES_AND_TYPES_FORMAT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAccountIdIfNeeded
(Map<String, String> params, String accountId) protected void
addCompress
(Map<String, String> params, boolean isCompress) protected void
addDatabaseIfNeeded
(Map<String, String> params, String database) protected void
addEngineIfNeeded
(Map<String, String> params, String engine) protected void
addQueryLabel
(Map<String, String> params, FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper) protected void
addQueryParameterIfNeeded
(Map<String, String> params, String queryParameters) protected void
addQueryTimeoutIfNeeded
(Map<String, String> params, int queryTimeout) protected void
addServerAsyncIfNeeded
(Map<String, String> params, boolean isServerAsync) getQueryParams
(FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper, int queryTimeout, boolean isServerAsync) Returns a map of parameters that will be added to the url and sent to the firebolt backend
-
Constructor Details
-
FireboltCoreQueryParameterProvider
public FireboltCoreQueryParameterProvider()
-
-
Method Details
-
getQueryParams
public Map<String,String> getQueryParams(FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper, int queryTimeout, boolean isServerAsync) Description copied from interface:QueryParameterProvider
Returns a map of parameters that will be added to the url and sent to the firebolt backend- Returns:
-
addQueryTimeoutIfNeeded
-
addServerAsyncIfNeeded
-
addCompress
-
addQueryLabel
protected void addQueryLabel(Map<String, String> params, FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper) -
addEngineIfNeeded
-
addAccountIdIfNeeded
-
addQueryParameterIfNeeded
-
addDatabaseIfNeeded
-