| Package | Description |
|---|---|
| net.snowflake.client.core | |
| net.snowflake.client.jdbc | |
| net.snowflake.client.jdbc.telemetryOOB |
| Modifier and Type | Method and Description |
|---|---|
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.generateIncidentWithException(String sessionToken,
String serverUrl,
String requestId,
String jobUuid,
ErrorCode errorCode,
Object... params) |
static SFException |
IncidentUtil.generateIncidentWithException(String sessionToken,
String serverUrl,
String requestId,
String jobUuid,
Throwable cause,
ErrorCode errorCode,
Object... params)
Creates an SFException to be thrown and generates/triggers an incident
based on that exception.
|
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 SFException |
IncidentUtil.generateIncidentWithSignatureAndException(String sessionToken,
String serverUrl,
String requestId,
String jobUuid,
String signature,
ErrorCode errorCode,
Object... params) |
| Modifier and Type | Method and Description |
|---|---|
List<SFException> |
SFSession.getSqlWarnings() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SFBaseResultSet.absolute(int row) |
void |
SFSession.addProperty(SFSessionProperty sfSessionProperty,
Object propertyValue) |
void |
SFStatement.addProperty(String propertyName,
Object propertyValue)
Add a statement parameter
|
void |
SFSession.addProperty(String propertyName,
Object propertyValue)
Add a property
If a property is known for connection, add it to connection properties
If not, add it as a dynamic session parameters
|
static int |
ResultUtil.calculateUpdateCount(SFBaseResultSet resultSet)
Calculate number of rows updated given a result set
Interpret result format based on result set's statement type
|
void |
SFStatement.cancel() |
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
|
SFStatementMetaData |
SFStatement.describe(String sql)
Describe a statement
|
static StmtUtil.StmtOutput |
StmtUtil.execute(net.snowflake.client.core.StmtUtil.StmtInput stmtInput)
Execute a statement
|
SFBaseResultSet |
SFStatement.execute(String sql,
Map<String,ParameterBindingDTO> parametersBinding,
SFStatement.CallingMethod caller)
Execute sql
|
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
|
BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex) |
BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex,
int scale) |
boolean |
SFBaseResultSet.getBoolean(int columnIndex) |
byte[] |
SFBaseResultSet.getBytes(int columnIndex) |
static List<SFChildResult> |
ResultUtil.getChildResults(SFSession 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
|
int |
SFResultSetMetaData.getColumnType(int column) |
String |
SFResultSetMetaData.getColumnTypeName(int column) |
Date |
SFBaseResultSet.getDate(int columnIndex) |
Date |
SFBaseResultSet.getDate(int columnIndex,
TimeZone tz) |
static Date |
ResultUtil.getDate(String str,
TimeZone tz,
SFSession session)
Convert a date internal object to a Date object in specified timezone.
|
double |
SFBaseResultSet.getDouble(int columnIndex) |
float |
SFBaseResultSet.getFloat(int columnIndex) |
int |
SFBaseResultSet.getInt(int columnIndex) |
int |
SFResultSetMetaData.getInternalColumnType(int column) |
long |
SFBaseResultSet.getLong(int columnIndex) |
SFResultSetMetaData |
SFBaseResultSet.getMetaData() |
Object |
SFBaseResultSet.getObject(int columnIndex) |
protected Object |
SFFixedViewResultSet.getObjectInternal(int columnIndex) |
protected Object |
SFResultSet.getObjectInternal(int columnIndex) |
protected abstract Object |
SFBaseResultSet.getObjectInternal(int columnIndex) |
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.
|
protected ServerSocket |
SessionUtilExternalBrowser.getServerSocket()
Gets a free port on localhost
|
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.
|
short |
SFBaseResultSet.getShort(int columnIndex) |
String |
SFBaseResultSet.getString(int columnIndex) |
Time |
SFBaseResultSet.getTime(int columnIndex) |
Timestamp |
SFBaseResultSet.getTimestamp(int columnIndex,
TimeZone tz) |
protected void |
SFSession.heartbeat()
Send heartbeat for the session
|
static SessionUtil.LoginOutput |
SessionUtil.issueSession(SessionUtil.LoginInput loginInput)
Issue a session
|
boolean |
SFFixedViewResultSet.next()
Advance to next row
|
boolean |
SFResultSet.next()
Advance to next row
|
boolean |
SFBaseResultSet.next() |
void |
SFSession.open()
Open a new database session
|
void |
SessionUtilExternalBrowser.AuthExternalBrowserHandlers.openBrowser(String ssoUrl) |
static SessionUtil.LoginOutput |
SessionUtil.openSession(SessionUtil.LoginInput loginInput)
Open a new session
|
boolean |
SFBaseResultSet.previous() |
boolean |
SFBaseResultSet.relative(int rows) |
static SessionUtil.LoginOutput |
SessionUtil.renewSession(SessionUtil.LoginInput loginInput)
Renew a session.
|
| Constructor and Description |
|---|
SFResultSet(com.fasterxml.jackson.databind.JsonNode result,
SFStatement statement,
boolean sortResult)
Constructor takes a result from the API response that we get from
executing a SQL statement.
|
| Constructor and Description |
|---|
SnowflakeSQLException(SFException e) |
| Modifier and Type | Method and Description |
|---|---|
TelemetryEvent.LogBuilder |
TelemetryEvent.LogBuilder.withException(SFException ex) |
Copyright © 2019. All rights reserved.