| Package | Description |
|---|---|
| net.snowflake.client.core | |
| net.snowflake.client.core.arrow | |
| net.snowflake.client.jdbc | |
| net.snowflake.client.jdbc.telemetryOOB |
| Modifier and Type | Field and Description |
|---|---|
protected List<SFException> |
SFBaseSession.sqlWarnings |
| Modifier and Type | Method and Description |
|---|---|
List<SFException> |
SFBaseSession.getSqlWarnings()
JDBC API.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SFBaseResultSet.absolute(int row) |
void |
SFBaseSession.addProperty(SFSessionProperty sfSessionProperty,
Object propertyValue)
Wrapper function for the other addProperty(String, Object) method that takes an
SFSessionProperty instead of a String key.
|
void |
SFBaseStatement.addProperty(String propertyName,
Object propertyValue)
Add a statement parameter
|
void |
SFBaseSession.addProperty(String propertyName,
Object propertyValue)
Adds a connection property to the connection-properties map.
|
void |
SFSession.addSFSessionProperty(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
|
SFBaseResultSet |
SFStatement.asyncExecute(String sql,
Map<String,ParameterBindingDTO> parametersBinding,
SFBaseStatement.CallingMethod caller) |
abstract SFBaseResultSet |
SFBaseStatement.asyncExecute(String sql,
Map<String,ParameterBindingDTO> parametersBinding,
SFBaseStatement.CallingMethod caller)
Execute sql asynchronously.
|
static long |
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() |
abstract void |
SFBaseStatement.cancel()
Aborts the statement.
|
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
|
abstract void |
SFBaseSession.close()
Close the connection
|
SFStatementMetaData |
SFStatement.describe(String sql)
Describe a statement
|
abstract SFStatementMetaData |
SFBaseStatement.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,
boolean asyncExec,
Map<String,ParameterBindingDTO> parametersBinding,
SFBaseStatement.CallingMethod caller)
Execute sql
|
SFBaseResultSet |
SFStatement.execute(String sql,
Map<String,ParameterBindingDTO> parametersBinding,
SFBaseStatement.CallingMethod caller) |
abstract SFBaseResultSet |
SFBaseStatement.execute(String sql,
Map<String,ParameterBindingDTO> parametersBinding,
SFBaseStatement.CallingMethod caller)
Executes the given SQL string.
|
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 |
SessionUtil.generateJWTToken(PrivateKey privateKey,
String privateKeyFile,
String privateKeyFilePwd,
String accountName,
String userName)
Helper function to generate a JWT token
|
BigDecimal |
SFJsonResultSet.getBigDecimal(int columnIndex) |
abstract BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex) |
BigDecimal |
SFArrowResultSet.getBigDecimal(int columnIndex) |
BigDecimal |
SFJsonResultSet.getBigDecimal(int columnIndex,
int scale) |
abstract BigDecimal |
SFBaseResultSet.getBigDecimal(int columnIndex,
int scale) |
BigDecimal |
SFArrowResultSet.getBigDecimal(int columnIndex,
int scale) |
boolean |
SFJsonResultSet.getBoolean(int columnIndex) |
abstract boolean |
SFBaseResultSet.getBoolean(int columnIndex) |
boolean |
SFArrowResultSet.getBoolean(int columnIndex) |
byte |
SFJsonResultSet.getByte(int columnIndex) |
abstract byte |
SFBaseResultSet.getByte(int columnIndex) |
byte |
SFArrowResultSet.getByte(int columnIndex) |
byte[] |
SFJsonResultSet.getBytes(int columnIndex) |
abstract byte[] |
SFBaseResultSet.getBytes(int columnIndex) |
byte[] |
SFArrowResultSet.getBytes(int columnIndex) |
static List<SFChildResult> |
ResultUtil.getChildResults(SFBaseSession 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 |
SFJsonResultSet.getDate(int columnIndex) |
Date |
SFJsonResultSet.getDate(int columnIndex,
TimeZone tz) |
abstract Date |
SFBaseResultSet.getDate(int columnIndex,
TimeZone tz) |
Date |
SFArrowResultSet.getDate(int columnIndex,
TimeZone tz) |
static Date |
ResultUtil.getDate(String str,
TimeZone tz,
SFBaseSession session)
Deprecated.
|
double |
SFJsonResultSet.getDouble(int columnIndex) |
abstract double |
SFBaseResultSet.getDouble(int columnIndex) |
double |
SFArrowResultSet.getDouble(int columnIndex) |
float |
SFJsonResultSet.getFloat(int columnIndex) |
abstract float |
SFBaseResultSet.getFloat(int columnIndex) |
float |
SFArrowResultSet.getFloat(int columnIndex) |
int |
SFJsonResultSet.getInt(int columnIndex) |
abstract int |
SFBaseResultSet.getInt(int columnIndex) |
int |
SFArrowResultSet.getInt(int columnIndex) |
int |
SFResultSetMetaData.getInternalColumnType(int column) |
long |
SFJsonResultSet.getLong(int columnIndex) |
abstract long |
SFBaseResultSet.getLong(int columnIndex) |
long |
SFArrowResultSet.getLong(int columnIndex) |
SFResultSetMetaData |
SFBaseResultSet.getMetaData() |
Object |
SFJsonResultSet.getObject(int columnIndex) |
abstract Object |
SFBaseResultSet.getObject(int columnIndex) |
Object |
SFArrowResultSet.getObject(int columnIndex) |
protected Object |
SFResultSet.getObjectInternal(int columnIndex) |
protected abstract Object |
SFJsonResultSet.getObjectInternal(int columnIndex)
Given a column index, get current row's value as an object
|
protected Object |
SFFixedViewResultSet.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,
SFBaseSession 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,
SFBaseSession 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,
SFBaseSession session)
Convert a SFTimestamp to a string value.
|
short |
SFJsonResultSet.getShort(int columnIndex) |
abstract short |
SFBaseResultSet.getShort(int columnIndex) |
short |
SFArrowResultSet.getShort(int columnIndex) |
String |
SFJsonResultSet.getString(int columnIndex) |
abstract String |
SFBaseResultSet.getString(int columnIndex) |
String |
SFArrowResultSet.getString(int columnIndex) |
Time |
SFJsonResultSet.getTime(int columnIndex) |
abstract Time |
SFBaseResultSet.getTime(int columnIndex) |
Time |
SFArrowResultSet.getTime(int columnIndex) |
Timestamp |
SFJsonResultSet.getTimestamp(int columnIndex,
TimeZone tz) |
abstract Timestamp |
SFBaseResultSet.getTimestamp(int columnIndex,
TimeZone tz) |
Timestamp |
SFArrowResultSet.getTimestamp(int columnIndex,
TimeZone tz) |
protected void |
SFSession.heartbeat()
Send heartbeat for the session
|
boolean |
SFResultSet.next()
Advance to next row
|
boolean |
SFFixedViewResultSet.next()
Advance to next row
|
boolean |
SFBaseResultSet.next() |
boolean |
SFArrowResultSet.next()
Advance to next row
|
void |
SFSession.open()
Open a new database session
|
void |
SessionUtilExternalBrowser.AuthExternalBrowserHandlers.openBrowser(String ssoUrl) |
boolean |
SFBaseResultSet.previous() |
boolean |
SFBaseResultSet.relative(int rows) |
| Modifier and Type | Method and Description |
|---|---|
protected byte |
TinyIntToFixedConverter.getByte(int index) |
static Date |
ArrowResultUtil.getDate(int day,
TimeZone oldTz,
TimeZone newTz)
Method to get Date from integer using timezone offsets
|
protected int |
IntToFixedConverter.getInt(int index) |
protected short |
SmallIntToFixedConverter.getShort(int index) |
org.apache.arrow.vector.IntVector |
ArrowResultChunkIndexSorter.sort()
This method is only used when sf-property sort is on
|
BigDecimal |
VarCharConverter.toBigDecimal(int index) |
BigDecimal |
TinyIntToFixedConverter.toBigDecimal(int index) |
BigDecimal |
SmallIntToFixedConverter.toBigDecimal(int index) |
BigDecimal |
IntToFixedConverter.toBigDecimal(int index) |
BigDecimal |
DoubleToRealConverter.toBigDecimal(int rowIndex) |
BigDecimal |
BitToBooleanConverter.toBigDecimal(int rowIndex) |
BigDecimal |
ArrowVectorConverter.toBigDecimal(int index)
Convert value in arrow vector to BigDecimal
|
boolean |
VarCharConverter.toBoolean(int index) |
boolean |
VarBinaryToBinaryConverter.toBoolean(int index) |
boolean |
TwoFieldStructToTimestampTZConverter.toBoolean(int index) |
boolean |
TwoFieldStructToTimestampNTZConverter.toBoolean(int index) |
boolean |
TwoFieldStructToTimestampLTZConverter.toBoolean(int index) |
boolean |
TinyIntToScaledFixedConverter.toBoolean(int index) |
boolean |
TinyIntToFixedConverter.toBoolean(int index) |
boolean |
ThreeFieldStructToTimestampTZConverter.toBoolean(int index) |
boolean |
SmallIntToScaledFixedConverter.toBoolean(int index) |
boolean |
SmallIntToFixedConverter.toBoolean(int index) |
boolean |
IntToTimeConverter.toBoolean(int index) |
boolean |
IntToScaledFixedConverter.toBoolean(int index) |
boolean |
IntToFixedConverter.toBoolean(int index) |
boolean |
DoubleToRealConverter.toBoolean(int index) |
boolean |
DecimalToScaledFixedConverter.toBoolean(int index) |
boolean |
DateConverter.toBoolean(int index) |
boolean |
BigIntToTimestampNTZConverter.toBoolean(int index) |
boolean |
BigIntToTimestampLTZConverter.toBoolean(int index) |
boolean |
BigIntToTimeConverter.toBoolean(int index) |
boolean |
BigIntToScaledFixedConverter.toBoolean(int index) |
boolean |
BigIntToFixedConverter.toBoolean(int index) |
boolean |
ArrowVectorConverter.toBoolean(int index)
Convert value in arrow vector to boolean data
|
byte |
TinyIntToFixedConverter.toByte(int index) |
byte |
SmallIntToFixedConverter.toByte(int index) |
byte |
IntToFixedConverter.toByte(int index) |
byte |
DecimalToScaledFixedConverter.toByte(int index) |
byte |
BigIntToFixedConverter.toByte(int index) |
byte |
ArrowVectorConverter.toByte(int index)
Convert value in arrow vector to byte data
|
byte[] |
TwoFieldStructToTimestampTZConverter.toBytes(int index) |
byte[] |
TwoFieldStructToTimestampNTZConverter.toBytes(int index) |
byte[] |
TwoFieldStructToTimestampLTZConverter.toBytes(int index) |
byte[] |
TinyIntToFixedConverter.toBytes(int index) |
byte[] |
ThreeFieldStructToTimestampTZConverter.toBytes(int index) |
byte[] |
SmallIntToFixedConverter.toBytes(int index) |
byte[] |
IntToTimeConverter.toBytes(int index) |
byte[] |
IntToFixedConverter.toBytes(int index) |
byte[] |
ArrowVectorConverter.toBytes(int index)
Convert value in arrow vector to byte array
|
Date |
TwoFieldStructToTimestampTZConverter.toDate(int index,
TimeZone tz,
boolean dateFormat) |
Date |
TwoFieldStructToTimestampNTZConverter.toDate(int index,
TimeZone tz,
boolean dateFormat) |
Date |
TwoFieldStructToTimestampLTZConverter.toDate(int index,
TimeZone tz,
boolean dateFormat) |
Date |
ThreeFieldStructToTimestampTZConverter.toDate(int index,
TimeZone tz,
boolean dateFormat) |
Date |
DateConverter.toDate(int index,
TimeZone jvmTz,
boolean useDateFormat) |
Date |
BigIntToTimestampNTZConverter.toDate(int index,
TimeZone tz,
boolean dateFormat) |
Date |
BigIntToTimestampLTZConverter.toDate(int index,
TimeZone tz,
boolean useDateFormat) |
Date |
ArrowVectorConverter.toDate(int index,
TimeZone jvmTz,
boolean useDateFormat)
Convert value in arrow vector to Date
|
double |
VarCharConverter.toDouble(int index) |
double |
TinyIntToFixedConverter.toDouble(int index) |
double |
SmallIntToFixedConverter.toDouble(int index) |
double |
IntToScaledFixedConverter.toDouble(int index) |
double |
IntToFixedConverter.toDouble(int index) |
double |
DecimalToScaledFixedConverter.toDouble(int index) |
double |
BitToBooleanConverter.toDouble(int rowIndex) |
double |
BigIntToScaledFixedConverter.toDouble(int index) |
double |
BigIntToFixedConverter.toDouble(int index) |
double |
ArrowVectorConverter.toDouble(int index)
Convert value in arrow vector to double data
|
float |
VarCharConverter.toFloat(int index) |
float |
TinyIntToScaledFixedConverter.toFloat(int index) |
float |
TinyIntToFixedConverter.toFloat(int index) |
float |
SmallIntToScaledFixedConverter.toFloat(int index) |
float |
SmallIntToFixedConverter.toFloat(int index) |
float |
IntToScaledFixedConverter.toFloat(int index) |
float |
IntToFixedConverter.toFloat(int index) |
float |
DecimalToScaledFixedConverter.toFloat(int index) |
float |
BitToBooleanConverter.toFloat(int rowIndex) |
float |
BigIntToScaledFixedConverter.toFloat(int index) |
float |
BigIntToFixedConverter.toFloat(int index) |
float |
ArrowVectorConverter.toFloat(int index)
Convert value in arrow vector to float data
|
int |
VarCharConverter.toInt(int index) |
int |
TinyIntToScaledFixedConverter.toInt(int index) |
int |
TinyIntToFixedConverter.toInt(int index) |
int |
SmallIntToScaledFixedConverter.toInt(int index) |
int |
SmallIntToFixedConverter.toInt(int index) |
int |
IntToScaledFixedConverter.toInt(int index) |
int |
IntToFixedConverter.toInt(int index) |
int |
DoubleToRealConverter.toInt(int rowIndex) |
int |
DecimalToScaledFixedConverter.toInt(int index) |
int |
BitToBooleanConverter.toInt(int rowIndex) |
int |
BigIntToScaledFixedConverter.toInt(int index) |
int |
BigIntToFixedConverter.toInt(int index) |
int |
ArrowVectorConverter.toInt(int index)
Convert value in arrow vector to int data
|
long |
VarCharConverter.toLong(int index) |
long |
TinyIntToScaledFixedConverter.toLong(int index) |
long |
TinyIntToFixedConverter.toLong(int index) |
long |
SmallIntToScaledFixedConverter.toLong(int index) |
long |
SmallIntToFixedConverter.toLong(int index) |
long |
IntToScaledFixedConverter.toLong(int index) |
long |
IntToFixedConverter.toLong(int index) |
long |
DoubleToRealConverter.toLong(int rowIndex) |
long |
DecimalToScaledFixedConverter.toLong(int index) |
long |
BitToBooleanConverter.toLong(int rowIndex) |
long |
BigIntToScaledFixedConverter.toLong(int index) |
long |
BigIntToFixedConverter.toLong(int index) |
long |
ArrowVectorConverter.toLong(int index)
Convert value in arrow vector to long data
|
Object |
TwoFieldStructToTimestampTZConverter.toObject(int index) |
Object |
TwoFieldStructToTimestampNTZConverter.toObject(int index) |
Object |
TwoFieldStructToTimestampLTZConverter.toObject(int index) |
Object |
TinyIntToScaledFixedConverter.toObject(int index) |
Object |
TinyIntToFixedConverter.toObject(int index) |
Object |
ThreeFieldStructToTimestampTZConverter.toObject(int index) |
Object |
SmallIntToScaledFixedConverter.toObject(int index) |
Object |
SmallIntToFixedConverter.toObject(int index) |
Object |
IntToTimeConverter.toObject(int index) |
Object |
IntToScaledFixedConverter.toObject(int index) |
Object |
IntToFixedConverter.toObject(int index) |
Object |
DecimalToScaledFixedConverter.toObject(int index) |
Object |
DateConverter.toObject(int index) |
Object |
BigIntToTimestampNTZConverter.toObject(int index) |
Object |
BigIntToTimestampLTZConverter.toObject(int index) |
Object |
BigIntToTimeConverter.toObject(int index) |
Object |
BigIntToFixedConverter.toObject(int index) |
Object |
ArrowVectorConverter.toObject(int index)
Convert value in arrow vector to Object
|
short |
VarCharConverter.toShort(int index) |
short |
TwoFieldStructToTimestampTZConverter.toShort(int rowIndex) |
short |
TinyIntToScaledFixedConverter.toShort(int index) |
short |
TinyIntToFixedConverter.toShort(int index) |
short |
ThreeFieldStructToTimestampTZConverter.toShort(int rowIndex) |
short |
SmallIntToScaledFixedConverter.toShort(int index) |
short |
SmallIntToFixedConverter.toShort(int index) |
short |
IntToScaledFixedConverter.toShort(int index) |
short |
IntToFixedConverter.toShort(int index) |
short |
DoubleToRealConverter.toShort(int rowIndex) |
short |
DecimalToScaledFixedConverter.toShort(int index) |
short |
DateConverter.toShort(int index) |
short |
BitToBooleanConverter.toShort(int rowIndex) |
short |
BigIntToScaledFixedConverter.toShort(int index) |
short |
BigIntToFixedConverter.toShort(int index) |
short |
ArrowVectorConverter.toShort(int index)
Convert value in arrow vector to short data
|
String |
TwoFieldStructToTimestampTZConverter.toString(int index) |
String |
TwoFieldStructToTimestampNTZConverter.toString(int index) |
String |
TwoFieldStructToTimestampLTZConverter.toString(int index) |
String |
TinyIntToScaledFixedConverter.toString(int index) |
String |
TinyIntToFixedConverter.toString(int index) |
String |
ThreeFieldStructToTimestampTZConverter.toString(int index) |
String |
SmallIntToScaledFixedConverter.toString(int index) |
String |
SmallIntToFixedConverter.toString(int index) |
String |
IntToTimeConverter.toString(int index) |
String |
IntToScaledFixedConverter.toString(int index) |
String |
IntToFixedConverter.toString(int index) |
String |
DateConverter.toString(int index) |
String |
BigIntToTimestampNTZConverter.toString(int index) |
String |
BigIntToTimestampLTZConverter.toString(int index) |
String |
BigIntToTimeConverter.toString(int index) |
String |
ArrowVectorConverter.toString(int index)
Convert value in arrow vector to string
|
Time |
TwoFieldStructToTimestampTZConverter.toTime(int index) |
Time |
TwoFieldStructToTimestampNTZConverter.toTime(int index) |
Time |
TwoFieldStructToTimestampLTZConverter.toTime(int index) |
Time |
ThreeFieldStructToTimestampTZConverter.toTime(int index) |
Time |
IntToTimeConverter.toTime(int index) |
Time |
BigIntToTimestampNTZConverter.toTime(int index) |
Time |
BigIntToTimestampLTZConverter.toTime(int index) |
Time |
BigIntToTimeConverter.toTime(int index) |
Time |
ArrowVectorConverter.toTime(int index)
Convert value in arrow vector to Time
|
Timestamp |
TwoFieldStructToTimestampTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
TwoFieldStructToTimestampNTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
TwoFieldStructToTimestampLTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
ThreeFieldStructToTimestampTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
IntToTimeConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
DateConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
BigIntToTimestampNTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
BigIntToTimestampLTZConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
BigIntToTimeConverter.toTimestamp(int index,
TimeZone tz) |
Timestamp |
ArrowVectorConverter.toTimestamp(int index,
TimeZone tz)
Convert value in arrow vector to Timestamp
|
| Modifier and Type | Method and Description |
|---|---|
ArrowVectorConverter |
ArrowResultChunk.ArrowChunkIterator.getCurrentConverter(int columnIdx) |
| Constructor and Description |
|---|
SnowflakeSQLException(SFException e) |
SnowflakeSQLLoggedException(SFBaseSession session,
SFException e) |
| Modifier and Type | Method and Description |
|---|---|
TelemetryEvent.LogBuilder |
TelemetryEvent.LogBuilder.withException(SFException ex) |
Copyright © 2022. All rights reserved.