Package com.firebolt.jdbc.client.query
Class FireboltCloudV1QueryParameterProvider
java.lang.Object
com.firebolt.jdbc.client.query.FireboltCloudV1QueryParameterProvider
- All Implemented Interfaces:
QueryParameterProvider
Query parameters that will be added when calling the firebolt cloud v1 APIs
-
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 voidaddAccountIdIfNeeded(Map<String, String> params, String accountId) protected voidaddCompress(Map<String, String> params, boolean isCompress) protected voidaddDatabaseIfNeeded(Map<String, String> params, String database) protected voidaddEngineIfNeeded(Map<String, String> params, String engine) protected voidaddQueryLabel(Map<String, String> params, FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper) protected voidaddQueryParameterIfNeeded(Map<String, String> params, String queryParameters) protected voidaddQueryTimeoutIfNeeded(Map<String, String> params, int queryTimeout) protected voidaddServerAsyncIfNeeded(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
-
FireboltCloudV1QueryParameterProvider
public FireboltCloudV1QueryParameterProvider()
-
-
Method Details
-
getQueryParams
public Map<String,String> getQueryParams(FireboltProperties fireboltProperties, StatementInfoWrapper statementInfoWrapper, int queryTimeout, boolean isServerAsync) Description copied from interface:QueryParameterProviderReturns 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
-