| 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
|
static void |
SessionUtil.closeSession(SessionUtil.LoginInput loginInput)
Close a session
|
static StmtUtil.StmtOutput |
StmtUtil.execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Execute a statement
|
Object |
SFStatement.executeHelper(String sql,
String mediaType,
Map<String,ParameterBindingDTO> bindValues,
boolean describeOnly,
boolean internal)
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)
Executes a HTTP request for Snowflake.
|
static String |
HttpUtil.executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int injectSocketTimeout,
AtomicBoolean canceling,
boolean includeRetryParameters)
Executes a HTTP request for Snowflake.
|
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.
|
static SessionUtil.LoginOutput |
SessionUtil.issueSession(SessionUtil.LoginInput loginInput)
Issue a session
|
boolean |
SFResultSet.next()
Advance to next row
|
boolean |
SFBaseResultSet.next() |
void |
SFSession.open()
Open a new database session
|
static SessionUtil.LoginOutput |
SessionUtil.openSession(SessionUtil.LoginInput loginInput)
Open a new session
|
static ResultUtil.ResultOutput |
ResultUtil.processResult(ResultUtil.ResultInput resultData,
SFSession sfSession)
A common helper to process result response
|
static SessionUtil.LoginOutput |
SessionUtil.renewSession(SessionUtil.LoginInput loginInput)
Renew a 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
SnowflakeResultChunk.addRow(Object[] row) |
static void |
SnowflakeUtil.checkErrorAndThrowException(com.fasterxml.jackson.databind.JsonNode rootNode) |
static void |
SnowflakeUtil.checkErrorAndThrowExceptionIncludingReauth(com.fasterxml.jackson.databind.JsonNode rootNode) |
InputStream |
SnowflakeConnectionV1.downloadStream(String stageName,
String sourceFileName,
boolean decompress)
Download file from the given stage and return an input stream
|
void |
SnowflakeResultChunk.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)
Execute an http request with retry logic.
|
static Set<String> |
SnowflakeFileTransferAgent.expandFileNames(String[] filePathList)
process a list of file paths separated by "," and expand the wildcards
if any to generate the list of paths for all files matched by the
wildcards
|
static SnowflakeColumnMetadata |
SnowflakeUtil.extractColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode,
boolean jdbcTreatDecimalAsInt) |
SnowflakeResultChunk |
SnowflakeChunkDownloader.getNextChunkToConsume()
The method does the following:
|
Object |
SnowflakeFileTransferAgent.getResultSet() |
static SnowflakeType |
SnowflakeType.javaTypeToSFType(int javaType) |
static void |
SnowflakeFileTransferAgent.renewExpiredToken(SFSession connection,
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
|
static void |
SnowflakeFileTransferAgent.throwJCEMissingError(String operation,
Exception ex) |
| Constructor and Description |
|---|
SnowflakeChunkDownloader(int colCount,
com.fasterxml.jackson.databind.JsonNode chunksData,
int prefetchThreads,
String qrmk,
com.fasterxml.jackson.databind.JsonNode chunkHeaders,
int networkTimeoutInMilli,
boolean useJsonParser,
long memoryLimit,
boolean efficientChunkStorage)
Constructor to initialize downloader
|
SnowflakeFileTransferAgent(String command,
SFSession connection,
SFStatement statement) |
SnowflakeResultSetMetaData(int columnCount,
List<String> columnNames,
List<String> columnTypeNames,
List<Integer> columnTypes,
SFSession session) |
| Modifier and Type | Method and Description |
|---|---|
SnowflakeStorageClient |
StorageClientFactory.createClient(StageInfo stage,
int parallel,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat)
Creates a storage client based on the value of stageLocationType
|
static SnowflakeAzureClient |
SnowflakeAzureClient.createSnowflakeAzureClient(StageInfo stage,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat) |
void |
SnowflakeS3Client.download(SFSession connection,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from S3.
|
void |
SnowflakeStorageClient.download(SFSession connection,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from remote storage.
|
void |
SnowflakeAzureClient.download(SFSession connection,
String command,
String localLocation,
String destFileName,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from remote storage.
|
InputStream |
SnowflakeS3Client.downloadToStream(SFSession connection,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from remote storage
|
InputStream |
SnowflakeStorageClient.downloadToStream(SFSession connection,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from remote storage
|
InputStream |
SnowflakeAzureClient.downloadToStream(SFSession connection,
String command,
int parallelism,
String remoteStorageLocation,
String stageFilePath,
String stageRegion)
Download a file from remote storage
|
void |
SnowflakeS3Client.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession connection,
String command) |
void |
SnowflakeStorageClient.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession connection,
String command)
Handles exceptions thrown by the remote storage provider
|
void |
SnowflakeAzureClient.handleStorageException(Exception ex,
int retryCount,
String operation,
SFSession connection,
String command)
Handles exceptions thrown by Azure Storage
|
void |
SnowflakeS3Client.renew(Map stageCredentials)
Renew the S3 client with fresh AWS credentials/access token
|
void |
SnowflakeStorageClient.renew(Map stageCredentials)
Re-creates the encapsulated storage client with a fresh access token
|
void |
SnowflakeAzureClient.renew(Map stageCredentials)
Re-creates the encapsulated storage client with a fresh access token
|
void |
SnowflakeS3Client.upload(SFSession connection,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion)
Upload a file (-stream) to S3.
|
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)
Upload a file (-stream) to remote storage
|
void |
SnowflakeAzureClient.upload(SFSession connection,
String command,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion)
Upload a file/stream to remote storage
|
| Constructor and Description |
|---|
SnowflakeS3Client(Map stageCredentials,
com.amazonaws.ClientConfiguration clientConfig,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
String stageRegion) |
Copyright © 2019. All rights reserved.