## Uses of Class
net.snowflake.client.core.SFSession

Packages that use SFSession
net.snowflake.client.core
net.snowflake.client.jdbc

### Uses of SFSession in net.snowflake.client.core

Fields in net.snowflake.client.core declared as SFSession
`protected SFSession` SFBaseResultSet.`session`

Methods in net.snowflake.client.core that return SFSession
`protected SFSession` SFStatement.`getSession()`

Methods in net.snowflake.client.core with parameters of type SFSession
`protected void` HeartbeatBackground.`addSession(SFSession session, long masterTokenValidityInSecs)` Method to add a session It will compare the master token validity and stored master token validity and if it is less, we will update the stored one and the heartbeat interval and reschedule heartbeat.
`static void` IncidentUtil.`generateIncident(SFSession session, String signature, String detail, String requestId, String jobUuid, Throwable cause)`
`static SFException` IncidentUtil.`generateIncidentWithException(SFSession session, String requestId, String jobUuid, ErrorCode errorCode, Object... params)` Creates an SFException without a cause to be thrown and generates/triggers an incident based on that exception.
`static SFException` IncidentUtil.`generateIncidentWithException(SFSession session, String requestId, String jobUuid, Throwable cause, ErrorCode errorCode, Object... params)`
`static SFException` IncidentUtil.`generateIncidentWithSignatureAndException(SFSession session, String requestId, String jobUuid, String signature, ErrorCode errorCode, Object... params)` Creates an SFException without a cause to be thrown and generates/triggers an incident based on that exception with the specified signature.
`static Date` ResultUtil.`getDate(String str, TimeZone tz, SFSession session)` Convert a date internal object to a Date object in specified timezone.
`static net.snowflake.common.core.SFTime` ResultUtil.`getSFTime(String obj, int scale, SFSession session)` Convert a time internal value (scaled number of seconds + fractional seconds) into an SFTime.
`static net.snowflake.common.core.SFTimestamp` ResultUtil.`getSFTimestamp(String timestampStr, int scale, int internalColumnType, long resultVersion, TimeZone sessionTZ, SFSession session)` Convert a timestamp internal value (scaled number of seconds + fractional seconds) into a SFTimestamp.
`static String` ResultUtil.`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, SFSession session)` Convert a SFTimestamp to a string value.
`protected void` HeartbeatBackground.`removeSession(SFSession session)` Method to remove a session.
`void` SFBaseResultSet.`setSession(SFSession session)`
`static void` SessionUtil.`updateSfDriverParamValues(Map<String,Object> parameters, SFSession session)`

Constructors in net.snowflake.client.core with parameters of type SFSession
Constructor and Description
`SFResultSetMetaData(int columnCount, List<String> columnNames, List<String> columnTypeNames, List<Integer> columnTypes, SFSession session)`

`SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, SFSession 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)`

`SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, String queryId, SFSession 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)`

`SFStatement(SFSession session)`

### Uses of SFSession in net.snowflake.client.jdbc

Methods in net.snowflake.client.jdbc that return SFSession
`SFSession` SnowflakeConnectionV1.`getSfSession()`

Methods in net.snowflake.client.jdbc with parameters of type SFSession
`static void` SnowflakeS3Client.`download(SnowflakeS3Client client, SFSession connection, String command, String localLocation, String destFileName, int parallelism, String bucketName, String stageFilePath, String stageRegion)` Download a file from S3.

`static Callable<Void>`

SnowflakeFileTransferAgent.`getDownloadFileCallable(String stageLocationType, String stageLocation, Map credentials, String srcFilePath, String localLocation, Map<String,net.snowflake.client.jdbc.SnowflakeFileTransferAgent.FileMetadata> fileMetadataMap, SnowflakeS3Client s3Client, SFSession connection, String command, int parallel, net.snowflake.common.core.S3FileEncryptionMaterial encMat, String stageRegion)`
A callable that can be executed in a separate thread using exeuctor service.

`static Callable<Void>`

SnowflakeFileTransferAgent.`getUploadFileCallable(String stageLocationType, String stageLocation, String srcFilePath, boolean requireCompress, Map<String,net.snowflake.client.jdbc.SnowflakeFileTransferAgent.FileMetadata> fileMetadataMap, SnowflakeS3Client s3Client, SFSession connection, String command, InputStream inputStream, boolean sourceFromStream, long sourceDataSize, int parallel, File srcFile, net.snowflake.common.core.S3FileEncryptionMaterial encMat, String stageRegion)`
A callable that can be executed in a separate thread using exeuctor service.

`static void` SnowflakeS3Client.`upload(SnowflakeS3Client client, SFSession connection, String command, int parallelism, int maxRetries, boolean uploadFromStream, String bucketName, File srcFile, String destFileName, InputStream inputStream, FileBackedOutputStream fileBackedOutputStream, com.amazonaws.services.s3.model.ObjectMetadata meta, String stageRegion)` Upload a file (-stream) to S3.

Constructors in net.snowflake.client.jdbc with parameters of type SFSession
Constructor and Description
`SnowflakeFileTransferAgent(String command, SFSession connection, SFStatement statement)`
`SnowflakeResultSetMetaData(int columnCount, List<String> columnNames, List<String> columnTypeNames, List<Integer> columnTypes, SFSession session)`