| Package | Description |
|---|---|
| net.snowflake.client.core | |
| net.snowflake.client.core.bind | |
| net.snowflake.client.jdbc | |
| net.snowflake.client.jdbc.cloud.storage |
| Modifier and Type | Class and Description |
|---|---|
class |
SFSession
Snowflake session implementation
|
| Modifier and Type | Field and Description |
|---|---|
protected SFBaseSession |
SFBaseResultSet.session |
| Modifier and Type | Method and Description |
|---|---|
SFBaseSession |
SFResultSetMetaData.getSession()
get the session
|
SFBaseSession |
SFBaseResultSet.getSession() |
SFBaseSession |
DataConversionContext.getSession() |
SFBaseSession |
SFStatement.getSFBaseSession() |
abstract SFBaseSession |
SFBaseStatement.getSFBaseSession()
Returns the SFBaseSession associated with this SFBaseStatement.
|
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
IncidentUtil.generateIncidentV2WithException(SFBaseSession session,
Throwable exc,
String jobId,
String requestId)
Makes a V2 incident object and triggers ir, effectively reporting the given exception to GS and
possibly to crashmanager
|
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
list
|
static Date |
ResultUtil.getDate(String str,
TimeZone tz,
SFBaseSession session)
Deprecated.
|
static net.snowflake.common.core.SFTime |
ResultUtil.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.SFTimestamp |
ResultUtil.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 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,
SFBaseSession session)
Convert a SFTimestamp to a string value.
|
protected void |
HeartbeatBackground.removeSession(SFBaseSession session)
Method to remove a session.
|
void |
SFBaseResultSet.setSession(SFBaseSession session) |
| Constructor and Description |
|---|
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.
|
SFResultSetMetaData(int columnCount,
List<String> columnNames,
List<String> columnTypeNames,
List<Integer> columnTypes,
SFBaseSession session) |
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) |
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) |
| Modifier and Type | Method and Description |
|---|---|
static BindUploader |
BindUploader.newInstance(SFBaseSession session,
String stageDir)
Create a new BindUploader which will upload to the given stage path.
|
| Modifier and Type | Field and Description |
|---|---|
protected SFBaseSession |
SnowflakeBaseResultSet.session |
| Modifier and Type | Method and Description |
|---|---|
SFBaseSession |
ChunkDownloadContext.getSession() |
SFBaseSession |
SnowflakeConnectionV1.getSFBaseSession() |
SFBaseSession |
SFConnectionHandler.getSFSession()
Gets the SFBaseSession implementation for this connection implementation
|
SFBaseSession |
DefaultSFConnectionHandler.getSFSession()
Returns the default SFSession client implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<SFBaseSession> |
SnowflakeResultSetSerializableV1.getSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
ResultJsonParserV2.continueParsing(ByteBuffer in,
SFBaseSession session)
Continue parsing with the given data
|
static SnowflakeResultSetSerializableV1 |
SnowflakeResultSetSerializableV1.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 SnowflakeResultSetSerializableV1 |
SnowflakeResultSetSerializableV1.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 overrideable ResultStreamProvider.
|
List<SnowflakeColumnMetadata> |
SnowflakeFixedView.describeColumns(SFBaseSession session) |
List<SnowflakeColumnMetadata> |
SFBaseFileTransferAgent.describeColumns(SFBaseSession session)
Describe the metadata of a fixed view.
|
void |
ResultJsonParserV2.endParsing(SFBaseSession session)
Check if the chunk has been parsed correctly.
|
static SnowflakeColumnMetadata |
SnowflakeUtil.extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode,
boolean jdbcTreatDecimalAsInt,
SFBaseSession session) |
static SnowflakeType |
SnowflakeType.javaTypeToSFType(int javaType,
SFBaseSession session) |
static void |
SnowflakeSQLLoggedException.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 work
|
void |
ResultJsonParserV2.startParsing(JsonResultChunk resultChunk,
SFBaseSession session) |
| Constructor and 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,
SFBaseSession session) |
JsonResultChunk(String url,
int rowCount,
int colCount,
int uncompressedSize,
SFBaseSession session) |
SnowflakeLoggedFeatureNotSupportedException(SFBaseSession session) |
SnowflakeSQLLoggedException(SFBaseSession session,
ErrorCode errorCode,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
ErrorCode errorCode,
Throwable ex,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
int vendorCode,
String SQLState) |
SnowflakeSQLLoggedException(SFBaseSession session,
int vendorCode,
String SQLState,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
SFException e) |
SnowflakeSQLLoggedException(SFBaseSession session,
String reason) |
SnowflakeSQLLoggedException(SFBaseSession session,
String SQLState,
int vendorCode,
Throwable ex,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
String SQLState,
String reason) |
SnowflakeSQLLoggedException(SFBaseSession session,
String reason,
String SQLState,
int vendorCode,
String queryId) |
| Modifier and Type | Method and Description |
|---|---|
static SnowflakeAzureClient |
SnowflakeAzureClient.createSnowflakeAzureClient(StageInfo stage,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
SFBaseSession sfSession) |
| Constructor and 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) |
Copyright © 2022. All rights reserved.