| Package | Description |
|---|---|
| net.snowflake.client.core |
| 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 |
|---|---|
boolean |
SFBaseResultSet.absolute(int row) |
void |
SFStatement.addProperty(String propertyName,
Object propertyValue)
Add a statement parameter
Make sure a property is not added more than once and the number of
properties does not exceed limit.
|
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
Make sure a property is not added more than once and the number of
properties does not exceed limit.
|
void |
SFStatement.cancel() |
static void |
StmtUtil.cancel(StmtUtil.StmtInput stmtInput)
Cancel a statement identifiable by a request id
|
protected void |
SFStatement.cancelHelper(String sql,
String mediaType)
A helper method to build URL and cancel the SQL for exec
|
void |
SFSession.close()
Close the connection
|
static void |
SessionUtil.closeSession(SessionUtil.LoginInput loginInput)
Close a session
|
SFStatementMetaData |
SFStatement.describe()
Describe the statement
|
SFStatementMetaData |
SFStatement.describe(String sql)
Describe a statement
|
static StmtUtil.StmtOutput |
StmtUtil.execute(StmtUtil.StmtInput stmtInput)
Execute a statement
side effect: stmtInput.prevGetResultURL is set if we have started ping
pong and receives an exception from session token expiration so that
during retry we don't retry the query submission, but continue the
ping pong process.
|
SFBaseResultSet |
SFStatement.execute(String sql)
Execute sql
|
protected SFBaseResultSet |
SFStatement.executeFileTransfer(String sql) |
Object |
SFStatement.executeHelper(String sql,
String mediaType,
Map<String,Map<String,Object>> bindValues,
boolean describeOnly)
A helper method to build URL and submit the SQL to snowflake for exec
|
protected SFBaseResultSet |
SFStatement.executeQuery(String sql)
Execute SQL query
|
protected SFBaseResultSet |
SFStatement.executeQuery(String sql,
boolean describeOnly)
Execute SQL query with an option for describe only
|
protected SFBaseResultSet |
SFStatement.executeQueryInternal(String sql,
Map<String,Map<String,Object>> parameterBindings,
boolean describeOnly)
Internal method for executing a query with bindings accepted.
|
BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex) |
BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex,
int scale) |
boolean |
SFBaseResultSet.getBoolean(int columnIndex) |
byte[] |
SFBaseResultSet.getBytes(int columnIndex) |
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 mediaType,
String previousGetResultPath,
StmtUtil.StmtInput stmtInput)
Issue get-result call to get query result given an in progress response.
|
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
|
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
|
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.
|
Copyright © 2017. All rights reserved.