| Package | Description |
|---|---|
| net.snowflake.client.core | |
| net.snowflake.client.jdbc | |
| net.snowflake.client.jdbc.cloud.storage |
| Modifier and Type | Method and Description |
|---|---|
static void |
StmtUtil.cancel(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Cancel a statement identifiable by a request id
|
void |
SFSession.close()
Close the connection
|
void |
SFResultSet.close() |
void |
SFFixedViewResultSet.close() |
abstract void |
SFBaseSession.close()
Close the connection
|
void |
SFBaseResultSet.close() |
void |
SFArrowResultSet.close() |
static StmtUtil.StmtOutput |
StmtUtil.execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Execute a statement
|
static String |
HttpUtil.executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int authTimeout,
int socketTimeout,
int retryCount,
org.apache.http.impl.client.CloseableHttpClient httpClient)
Executes a HTTP request for Snowflake
|
static String |
HttpUtil.executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int authTimeout,
int socketTimeout,
int retryCount,
HttpClientSettingsKey ocspAndProxyKey)
Executes a HTTP request for Snowflake.
|
Object |
SFStatement.executeHelper(String sql,
String mediaType,
Map<String,ParameterBindingDTO> bindValues,
boolean describeOnly,
boolean internal,
boolean asyncExec)
A helper method to build URL and submit the SQL to snowflake for exec
|
static String |
HttpUtil.executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int authTimeout,
int socketTimeout,
int retryCount,
int injectSocketTimeout,
AtomicBoolean canceling,
boolean includeRetryParameters,
boolean retryOnHTTP403,
HttpClientSettingsKey ocspAndProxyKey)
Executes a HTTP request for Snowflake.
|
HttpClientSettingsKey |
SFBaseSession.getHttpClientKey() |
SnowflakeResultChunk |
ChunkDownloader.getNextChunkToConsume()
Get next SnowflakeResultChunk that is ready to be consumed by the main thread.
|
protected static String |
StmtUtil.getQueryResult(com.fasterxml.jackson.databind.JsonNode inProgressResponse,
String previousGetResultPath,
net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Issue get-result call to get query result given an in-progress response.
|
protected static String |
StmtUtil.getQueryResult(String getResultPath,
net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Issue get-result call to get query result given an in-progress response.
|
protected static com.fasterxml.jackson.databind.JsonNode |
StmtUtil.getQueryResultJSON(String queryId,
SFSession session)
Issue get-result call to get query result given an in progress response.
|
boolean |
SFResultSet.next()
Advance to next row
|
boolean |
SFBaseResultSet.next() |
boolean |
SFArrowResultSet.next()
Advance to next row
|
void |
SFSession.open()
Open a new database session
|
static void |
HttpUtil.setSessionlessProxyForAzure(Properties proxyProperties,
com.microsoft.azure.storage.OperationContext opContext)
A static function to set Azure proxy params for sessionless connections using the proxy params
from the StageInfo
|
static void |
HttpUtil.setSessionlessProxyForS3(Properties proxyProperties,
com.amazonaws.ClientConfiguration clientConfig)
A static function to set S3 proxy params for sessionless connections using the proxy params
from the StageInfo
|
| Constructor and Description |
|---|
SFFixedViewResultSet(SnowflakeFixedView fixedView,
SFBaseFileTransferAgent.CommandType commandType,
String queryID) |
| Modifier and Type | Class and Description |
|---|---|
class |
SnowflakeReauthenticationRequest
SnowflakeReauthenticationRequest signals the reauthentication used for SSO
|
class |
SnowflakeSQLLoggedException |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonResultChunk.addByte(byte b,
int pos) |
void |
JsonResultChunk.addBytes(byte[] src,
int offset,
int pos,
int length) |
void |
JsonResultChunk.addOffset(int offset) |
void |
JsonResultChunk.addRow(Object[] row) |
static void |
SnowflakeUtil.checkErrorAndThrowException(com.fasterxml.jackson.databind.JsonNode rootNode) |
static void |
SnowflakeUtil.checkErrorAndThrowExceptionIncludingReauth(com.fasterxml.jackson.databind.JsonNode rootNode) |
void |
ResultJsonParserV2.continueParsing(ByteBuffer in,
SFBaseSession session)
Continue parsing with the given data
|
static HttpClientSettingsKey |
SnowflakeUtil.convertProxyPropertiesToHttpClientKey(OCSPMode mode,
Properties info)
Setup JDBC proxy properties if necessary.
|
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.
|
InputStream |
SnowflakeFileTransferAgent.downloadStream(String fileName)
Download a file from remote, and return an input stream
|
abstract InputStream |
SFBaseFileTransferAgent.downloadStream(String fileName)
Download data from a stage.
|
void |
ResultJsonParserV2.endParsing(SFBaseSession session)
Check if the chunk has been parsed correctly.
|
void |
JsonResultChunk.ensureRowsComplete()
Checks that all data has been added after parsing.
|
static org.apache.http.client.methods.CloseableHttpResponse |
RestRequest.execute(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase httpRequest,
long retryTimeout,
long authTimeout,
int socketTimeout,
int retryCount,
int injectSocketTimeout,
AtomicBoolean canceling,
boolean withoutCookies,
boolean includeRetryParameters,
boolean includeRequestGuid,
boolean retryHTTP403)
Execute an http request with retry logic.
|
static SnowflakeColumnMetadata |
SnowflakeUtil.extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode,
boolean jdbcTreatDecimalAsInt,
SFBaseSession session) |
byte |
JsonResultChunk.get(int offset) |
SFBaseFileTransferAgent |
SFConnectionHandler.getFileTransferAgent(String command,
SFBaseStatement statement) |
SFBaseFileTransferAgent |
DefaultSFConnectionHandler.getFileTransferAgent(String command,
SFBaseStatement statement) |
List<SnowflakeFileTransferMetadata> |
SnowflakeFileTransferAgent.getFileTransferMetadatas()
This is API function to retrieve the File Transfer Metadatas.
|
static List<SnowflakeFileTransferMetadata> |
SnowflakeFileTransferAgent.getFileTransferMetadatas(com.fasterxml.jackson.databind.JsonNode jsonNode)
This is API function to parse the File Transfer Metadatas from a supplied PUT call response.
|
SnowflakeResultChunk |
SnowflakeChunkDownloader.getNextChunkToConsume()
The method does the following:
|
SnowflakeResultChunk |
SnowflakeChunkDownloader.NoOpChunkDownloader.getNextChunkToConsume() |
Object |
SnowflakeFileTransferAgent.getResultSet() |
SFSession |
SnowflakeConnectionV1.getSfSession() |
static SnowflakeType |
SnowflakeType.javaTypeToSFType(int javaType,
SFBaseSession session) |
boolean |
ArrowResultChunk.ArrowChunkIterator.next()
advance to next row
|
void |
JsonResultChunk.nextIndex() |
static void |
SnowflakeFileTransferAgent.renewExpiredToken(SFSession session,
String command,
SnowflakeStorageClient client)
This static method is called when we are handling an expired token exception It retrieves a
fresh token from GS and then calls .renew() on the storage client to refresh itself with the
new token
|
void |
JsonResultChunk.setIsNull() |
void |
JsonResultChunk.setLastLength(int len) |
void |
ResultJsonParserV2.startParsing(JsonResultChunk resultChunk,
SFBaseSession session) |
static void |
SnowflakeFileTransferAgent.throwJCEMissingError(String operation,
Exception ex) |
| Constructor and Description |
|---|
SnowflakeChunkDownloader(SnowflakeResultSetSerializableV1 resultSetSerializable)
Constructor to initialize downloader, which uses the default stream provider
|
SnowflakeFileTransferAgent(String command,
SFSession session,
SFStatement statement) |
| Modifier and Type | Method and Description |
|---|---|
SnowflakeStorageClient |
StorageClientFactory.createClient(StageInfo stage,
int parallel,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
SFSession session)
Creates a storage client based on the value of stageLocationType
|
static SnowflakeAzureClient |
SnowflakeAzureClient.createSnowflakeAzureClient(StageInfo stage,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
SFBaseSession sfSession) |
static SnowflakeGCSClient |
SnowflakeGCSClient.createSnowflakeGCSClient(StageInfo stage,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
SFSession session) |
void |
SnowflakeStorageClient.download(SFSession connection,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage.
|
void |
SnowflakeS3Client.download(SFSession session,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from S3.
|
void |
SnowflakeGCSClient.download(SFSession session,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage.
|
void |
SnowflakeAzureClient.download(SFSession session,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage.
|
InputStream |
SnowflakeStorageClient.downloadToStream(SFSession connection,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage
|
InputStream |
SnowflakeS3Client.downloadToStream(SFSession session,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage
|
InputStream |
SnowflakeGCSClient.downloadToStream(SFSession session,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage
|
InputStream |
SnowflakeAzureClient.downloadToStream(SFSession session,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion,
String presignedUrl)
Download a file from remote storage
|
void |
SnowflakeStorageClient.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession connection,
String command)
Handles exceptions thrown by the remote storage provider
|
void |
SnowflakeS3Client.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession session,
String command) |
void |
SnowflakeGCSClient.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession session,
String command) |
void |
SnowflakeAzureClient.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession session,
String command)
Handles exceptions thrown by Azure Storage
|
void |
SnowflakeStorageClient.renew(Map<?,?> stageCredentials)
Re-creates the encapsulated storage client with a fresh access token
|
void |
SnowflakeS3Client.renew(Map<?,?> stageCredentials)
Renew the S3 client with fresh AWS credentials/access token
|
void |
SnowflakeGCSClient.renew(Map<?,?> stageCredentials) |
void |
SnowflakeAzureClient.renew(Map<?,?> stageCredentials)
Re-creates the encapsulated storage client with a fresh access token
|
void |
SnowflakeStorageClient.upload(SFSession connection,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to remote storage
|
void |
SnowflakeS3Client.upload(SFSession session,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to S3.
|
void |
SnowflakeGCSClient.upload(SFSession session,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file/stream to remote storage
|
void |
SnowflakeAzureClient.upload(SFSession session,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file/stream to remote storage
|
default void |
SnowflakeStorageClient.uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli,
HttpClientSettingsKey ocspModeAndProxyKey,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC connection.
|
void |
SnowflakeGCSClient.uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli,
HttpClientSettingsKey ocspModeAndProxyKey,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC session.
|
| 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.