| 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() |
void |
SFBaseResultSet.close() |
void |
SFArrowResultSet.close() |
static void |
HttpUtil.configureCustomProxyProperties(Map<SFSessionProperty,Object> connectionPropertiesMap)
configure custom proxy properties from connectionPropertiesMap
|
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,
OCSPMode ocspMode)
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 injectSocketTimeout,
AtomicBoolean canceling,
boolean includeRetryParameters,
boolean retryOnHTTP403,
OCSPMode ocspMode)
Executes a HTTP request for Snowflake.
|
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
|
| Constructor and Description |
|---|
SFFixedViewResultSet(SnowflakeFixedView fixedView,
SnowflakeFileTransferAgent.CommandType commandType) |
| 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,
SFSession session)
Continue parsing with the given data
|
static SnowflakeResultSetSerializableV1 |
SnowflakeResultSetSerializableV1.create(com.fasterxml.jackson.databind.JsonNode rootNode,
SFSession sfSession,
SFStatement sfStatement)
A factory function to create SnowflakeResultSetSerializable object from result JSON node.
|
void |
ResultJsonParserV2.endParsing(SFSession 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,
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,
SFSession session) |
byte |
JsonResultChunk.get(int offset) |
List<SnowflakeFileTransferMetadata> |
SnowflakeFileTransferAgent.getFileTransferMetadatas()
This is API function to retrieve the File Transfer Metadatas.
|
SnowflakeResultChunk |
SnowflakeChunkDownloader.getNextChunkToConsume()
The method does the following:
|
SnowflakeResultChunk |
SnowflakeChunkDownloader.NoOpChunkDownloader.getNextChunkToConsume() |
Object |
SnowflakeFileTransferAgent.getResultSet() |
static SnowflakeType |
SnowflakeType.javaTypeToSFType(int javaType,
SFSession 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) |
static void |
SnowflakeUtil.setupProxyPropertiesIfNecessary(Properties info)
Setup JDBC proxy properties if necessary.
|
void |
ResultJsonParserV2.startParsing(JsonResultChunk resultChunk,
SFSession session) |
static void |
SnowflakeFileTransferAgent.throwJCEMissingError(String operation,
Exception ex) |
| Constructor and Description |
|---|
SnowflakeChunkDownloader(SnowflakeResultSetSerializableV1 resultSetSerializable)
Constructor to initialize downloader
|
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,
SFSession 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,
OCSPMode ocspMode,
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,
OCSPMode ocspMode,
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,
String stageRegion,
String stageEndPoint,
boolean isClientSideEncrypted,
SFSession session) |
Copyright © 2020. All rights reserved.