Uses of Class
net.snowflake.client.core.SFBaseSession
-
-
Uses of SFBaseSession in net.snowflake.client.core
Subclasses of SFBaseSession in net.snowflake.client.core Modifier and Type Class Description classSFSessionSnowflake session implementationFields in net.snowflake.client.core declared as SFBaseSession Modifier and Type Field Description protected SFBaseSessionBaseSqlInput. sessionprotected SFBaseSessionSFBaseResultSet. sessionMethods in net.snowflake.client.core that return SFBaseSession Modifier and Type Method Description SFBaseSessionDataConversionContext. getSession()SFBaseSessionSFBaseResultSet. getSession()SFBaseSessionSFResultSetMetaData. getSession()get the sessionabstract SFBaseSessionSFBaseStatement. getSFBaseSession()Get the SFBaseSession associated with this SFBaseStatement.SFBaseSessionSFStatement. getSFBaseSession()SFBaseSessionHttpExecutingContext. getSfSession()Methods in net.snowflake.client.core with parameters of type SFBaseSession Modifier and Type Method Description static voidStmtUtil. cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, CancellationReason cancellationReason, SFBaseSession sfSession)Cancel a statement identifiable by a request idprotected SQLInputSFBaseResultSet. createJsonSqlInputForColumn(Object input, SFBaseSession session, List<FieldMetadata> fields)SQLInputSFArrowResultSet. createSqlInputForColumn(Object input, Class<?> parentObjectClass, int columnIndex, SFBaseSession session, List<FieldMetadata> fields)SQLInputSFBaseResultSet. createSqlInputForColumn(Object input, Class<?> parentObjectClass, int columnIndex, SFBaseSession session, List<FieldMetadata> fields)SQLInputSFJsonResultSet. createSqlInputForColumn(Object input, Class<?> parentObjectClass, int columnIndex, SFBaseSession session, List<FieldMetadata> fields)static StmtUtil.StmtOutputStmtUtil. execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)Execute a statementstatic StringHttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, SFBaseSession sfSession)Executes an HTTP request for Snowflake.static StringHttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, RetryContextManager retryContextManager, SFBaseSession sfSession)Executes an HTTP request for Snowflake.static StringHttpUtil. executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, org.apache.http.impl.client.CloseableHttpClient httpClient, SFBaseSession sfSession)Executes an HTTP request for Snowflakestatic StringHttpUtil. executeGeneralRequestOmitSnowflakeHeaders(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, SFBaseSession sfSession)static HttpResponseWithHeadersHttpUtil. executeGeneralRequestWithContext(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int retryCount, HttpClientSettingsKey ocspAndProxyAndGzipKey, SFBaseSession sfSession)Executes an HTTP request for Snowflake and returns response with headers.static StringHttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)Executes an HTTP request for Snowflake.static StringHttpUtil. executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, int retryTimeout, int authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean includeRetryParameters, boolean retryOnHTTP403, HttpClientSettingsKey ocspAndProxyKey, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager, SFBaseSession sfSession)Executes an HTTP request for Snowflake.static List<SFChildResult>ResultUtil. getChildResults(SFBaseSession session, String requestId, com.fasterxml.jackson.databind.JsonNode result)Return the list of child results provided in a result, if available; otherwise return an empty liststatic intColumnTypeHelper. getColumnType(int internalColumnType, SFBaseSession session)static DateResultUtil. getDate(String str, TimeZone tz, SFBaseSession session)Deprecated.static com.fasterxml.jackson.databind.ObjectMapperObjectMapperFactory. getObjectMapperForSession(SFBaseSession session)protected static StringStmtUtil. getQueryResult(com.fasterxml.jackson.databind.JsonNode inProgressResponse, String previousGetResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput, SFBaseSession sfSession)Issue get-result call to get query result given an in-progress response.protected static StringStmtUtil. getQueryResult(String getResultPath, net.snowflake.client.core.StmtUtil.StmtInput stmtInput, SFBaseSession sfSession)Issue get-result call to get query result given an in-progress response.static net.snowflake.common.core.SFTimeResultUtil. getSFTime(String obj, int scale, SFBaseSession session)Convert a time internal value (scaled number of seconds + fractional seconds) into an SFTime.static net.snowflake.common.core.SFTimestampResultUtil. getSFTimestamp(String timestampStr, int scale, int internalColumnType, long resultVersion, TimeZone sessionTZ, SFBaseSession session)Convert a timestamp internal value (scaled number of seconds + fractional seconds) into a SFTimestamp.static StringResultUtil. getSFTimestampAsString(net.snowflake.common.core.SFTimestamp sfTS, int columnType, int scale, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, SFBaseSession session)Convert a SFTimestamp to a string value.static TimestampSfTimestampUtil. getTimestampFromType(int columnSubType, String value, SFBaseSession session, TimeZone sessionTimeZone, TimeZone tz)protected voidHeartbeatBackground. removeSession(SFBaseSession session)Method to remove a session.voidSFBaseResultSet. setSession(SFBaseSession session)voidHttpExecutingContext. setSfSession(SFBaseSession sfSession)HttpExecutingContextBuilderHttpExecutingContextBuilder. withSfSession(SFBaseSession sfSession)Sets the session associated with this context.Constructors in net.snowflake.client.core with parameters of type SFBaseSession Constructor Description ArrowSqlInput(Map<String,Object> input, SFBaseSession session, Converters converters, List<FieldMetadata> fields)BaseSqlInput(SFBaseSession session, Converters converters, List<FieldMetadata> fields)JsonSqlInput(String text, com.fasterxml.jackson.databind.JsonNode input, SFBaseSession session, Converters converters, List<FieldMetadata> fields, TimeZone sessionTimeZone)JsonSqlOutput(SQLData original, SFBaseSession sfBaseSession)SFArrowResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable, SFBaseSession session, SFBaseStatement statement, boolean sortResult)Constructor takes a result from the API response that we get from executing a SQL statement.SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable, SFBaseSession session, Telemetry telemetryClient, boolean sortResult)This is a minimum initialization for SFResultSet.SFResultSetMetaData(int columnCount, List<String> columnNames, List<String> columnTypeNames, List<Integer> columnTypes, SFBaseSession session)SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, String queryId, SFBaseSession session, boolean isResultColumnCaseInsensitive, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, SFBaseSession session, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)SfSqlArray(int baseType, Object elements, SFBaseSession session, com.fasterxml.jackson.databind.ObjectMapper objectMapper)SfSqlArray(String text, int baseType, Object elements, SFBaseSession session, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Uses of SFBaseSession in net.snowflake.client.core.arrow
Methods in net.snowflake.client.core.arrow with parameters of type SFBaseSession Modifier and Type Method Description static ArrowVectorConverterArrowVectorConverterUtil. initConverter(org.apache.arrow.vector.ValueVector vector, DataConversionContext context, SFBaseSession session, int idx)Given an arrow vector (a single column in a single record batch), return an arrow vector converter. -
Uses of SFBaseSession in net.snowflake.client.core.bind
Methods in net.snowflake.client.core.bind with parameters of type SFBaseSession Modifier and Type Method Description static BindUploaderBindUploader. newInstance(SFBaseSession session, String stageDir)Create a new BindUploader which will upload to the given stage path. -
Uses of SFBaseSession in net.snowflake.client.core.json
Methods in net.snowflake.client.core.json with parameters of type SFBaseSession Modifier and Type Method Description ConverterConverters. dateStringConverter(SFBaseSession session)ConverterConverters. timeFromStringConverter(SFBaseSession session)ConverterConverters. timestampFromStringConverter(int columnSubType, int columnType, int scale, SFBaseSession session, TimeZone tz, TimeZone sessionTimezone)Constructors in net.snowflake.client.core.json with parameters of type SFBaseSession Constructor Description Converters(TimeZone sessionTimeZone, SFBaseSession session, long resultVersion, boolean honorClientTZForTimestampNTZ, boolean treatNTZAsUTC, boolean useSessionTimezone, boolean formatDateWithTimeZone, net.snowflake.common.core.SFBinaryFormat binaryFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter)Converters(SFBaseSession session, SnowflakeResultSetSerializableV1 resultSetSerializable)DateTimeConverter(TimeZone sessionTimeZone, SFBaseSession session, long resultVersion, boolean honorClientTZForTimestampNTZ, boolean treatNTZAsUTC, boolean useSessionTimezone, boolean formatDateWithTimeZone)StringConverter(TimeZone sessionTimeZone, net.snowflake.common.core.SFBinaryFormat binaryFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, long resultVersion, SFBaseSession session, Converters converters) -
Uses of SFBaseSession in net.snowflake.client.jdbc
Fields in net.snowflake.client.jdbc declared as SFBaseSession Modifier and Type Field Description protected SFBaseSessionSnowflakeBaseResultSet. sessionMethods in net.snowflake.client.jdbc that return SFBaseSession Modifier and Type Method Description SFBaseSessionChunkDownloadContext. getSession()SFBaseSessionSnowflakeConnectionV1. getSFBaseSession()SFBaseSessionDefaultSFConnectionHandler. getSFSession()Returns the default SFSession client implementation.SFBaseSessionSFConnectionHandler. getSFSession()Methods in net.snowflake.client.jdbc that return types with arguments of type SFBaseSession Modifier and Type Method Description Optional<SFBaseSession>SnowflakeResultSetSerializableV1. getSession()Methods in net.snowflake.client.jdbc with parameters of type SFBaseSession Modifier and Type Method Description intResultJsonParserV2. continueParsing(ByteBuffer in, SFBaseSession session)Continue parsing with the given datastatic SnowflakeResultSetSerializableV1SnowflakeResultSetSerializableV1. create(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)A factory function to create SnowflakeResultSetSerializable object from result JSON node, using the DefaultResultStreamProvider.static SnowflakeResultSetSerializableV1SnowflakeResultSetSerializableV1. create(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement, ResultStreamProvider resultStreamProvider)A factory function to create SnowflakeResultSetSerializable object from result JSON node, with an overridable ResultStreamProvider.static SnowflakeResultSetSerializableV1SnowflakeResultSetSerializableV1. createWithChunksPrefetchDisabled(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)A factory function for internal usage only.static SnowflakeRichResultSetSerializableV1SnowflakeRichResultSetSerializableV1. createWithChunksPrefetchDisabled(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement)A factory function for internal usage only.List<SnowflakeColumnMetadata>SFBaseFileTransferAgent. describeColumns(SFBaseSession session)Describe the metadata of a fixed view.List<SnowflakeColumnMetadata>SnowflakeFixedView. describeColumns(SFBaseSession session)voidResultJsonParserV2. endParsing(ByteBuffer in, SFBaseSession session)Check if the chunk has been parsed correctly.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData, SFBaseSession sfSession)Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, boolean noRetry, ExecTimeTelemetryData execTimeData, RetryContextManager retryManager, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession)Execute an HTTP request with retry logic.static org.apache.http.client.methods.CloseableHttpResponseRestRequest. execute(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, ExecTimeTelemetryData execTimeData, RetryContextManager retryContextManager, SFBaseSession sfSession)Execute an HTTP request with retry logic.static HttpResponseContextDtoRestRequest. executeWithRetries(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, boolean noRetry, boolean unpackResponse, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)Execute an HTTP request with retry logic.static HttpResponseContextDtoRestRequest. executeWithRetries(org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest, long retryTimeout, long authTimeout, int socketTimeout, int maxRetries, int injectSocketTimeout, AtomicBoolean canceling, boolean withoutCookies, boolean includeRetryParameters, boolean includeSnowflakeHeaders, boolean retryHTTP403, boolean unpackResponse, ExecTimeTelemetryData execTimeTelemetryData, SFBaseSession sfSession, HttpClientSettingsKey key, List<HttpHeadersCustomizer> httpHeaderCustomizer, boolean isHttpClientWithoutDecompression)Execute an HTTP request with retry logic.static SnowflakeColumnMetadataSnowflakeUtil. extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)Deprecated.static SnowflakeTypeSnowflakeType. javaTypeToSFType(int javaType, SFBaseSession session)static SnowflakeTypeSnowflakeUtil. javaTypeToSFType(int javaType, SFBaseSession session)static voidSnowflakeSQLLoggedException. sendTelemetryData(String queryId, String SQLState, int vendorCode, SFBaseSession session, SQLException ex)Function to construct log data based on possible exception inputs and send data through in-band telemetry, or oob if in-band does not workvoidResultJsonParserV2. startParsing(JsonResultChunk resultChunk, SFBaseSession session)Constructors in net.snowflake.client.jdbc with parameters of type SFBaseSession Constructor Description ArrowResultChunk(String url, int rowCount, int colCount, int uncompressedSize, org.apache.arrow.memory.RootAllocator rootAllocator, SFBaseSession session)ChunkDownloadContext(SnowflakeChunkDownloader chunkDownloader, SnowflakeResultChunk resultChunk, String qrmk, int chunkIndex, Map<String,String> chunkHeadersMap, int networkTimeoutInMilli, int authTimeout, int socketTimeout, int maxHttpRetries, SFBaseSession session)JsonResultChunk(String url, int rowCount, int colCount, int uncompressedSize, SFBaseSession session)SnowflakeColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)SnowflakeLoggedFeatureNotSupportedException(SFBaseSession session)SnowflakeLoggedFeatureNotSupportedException(SFBaseSession session, String message)SnowflakeResultSetSerializableV1(com.fasterxml.jackson.databind.JsonNode rootNode, SFBaseSession sfSession, SFBaseStatement sfStatement, ResultStreamProvider resultStreamProvider, boolean disableChunksPrefetch)SnowflakeRichResultsColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, int vendorCode, String SQLState)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, int vendorCode, String SQLState, Object... params)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, String reason)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, String SQLState, int vendorCode, Throwable ex, Object... params)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, String SQLState, String reason)SnowflakeSQLLoggedException(String queryId, SFBaseSession session, ErrorCode errorCode, Object... params)SnowflakeSQLLoggedException(SFBaseSession session, int vendorCode, String SQLState)SnowflakeSQLLoggedException(SFBaseSession session, int vendorCode, String SQLState, Object... params)SnowflakeSQLLoggedException(SFBaseSession session, String reason)Deprecated.SnowflakeSQLLoggedException(SFBaseSession session, String SQLState, int vendorCode, Throwable ex, Object... params)SnowflakeSQLLoggedException(SFBaseSession session, String SQLState, String reason)Deprecated.SnowflakeSQLLoggedException(SFBaseSession session, String reason, String SQLState, int vendorCode, String queryId)SnowflakeSQLLoggedException(SFBaseSession session, SFException e)SnowflakeSQLLoggedException(SFBaseSession session, ErrorCode errorCode, Object... params)Deprecated.SnowflakeSQLLoggedException(SFBaseSession session, ErrorCode errorCode, Throwable ex, Object... params) -
Uses of SFBaseSession in net.snowflake.client.jdbc.cloud.storage
Methods in net.snowflake.client.jdbc.cloud.storage with parameters of type SFBaseSession Modifier and Type Method Description static SnowflakeAzureClientSnowflakeAzureClient. createSnowflakeAzureClient(StageInfo stage, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SFBaseSession sfSession)Constructors in net.snowflake.client.jdbc.cloud.storage with parameters of type SFBaseSession Constructor Description SnowflakeS3Client(Map<?,?> stageCredentials, com.amazonaws.ClientConfiguration clientConfig, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, Properties proxyProperties, String stageRegion, String stageEndPoint, boolean isClientSideEncrypted, SFBaseSession session, boolean useS3RegionalUrl)
-