public class SFResultSet extends SFJsonResultSet
| Modifier and Type | Field and Description |
|---|---|
protected SFBaseStatement |
statement |
isClosed, metaDataOfBinds, numberOfBinds, parameters, resultSetMetaData, resultSetSerializable, resultVersion, row, session| Constructor and Description |
|---|
SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable,
SFBaseStatement statement,
boolean sortResult)
Constructor takes a result from the API response that we get from executing a SQL statement.
|
SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable,
Telemetry telemetryClient,
boolean sortResult)
This is a minimum initialization for SFResultSet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Object |
getObjectInternal(int columnIndex)
Given a column index, get current row's value as an object
|
String |
getQueryId() |
SFStatementType |
getStatementType() |
boolean |
isAfterLast() |
boolean |
isArrayBindSupported() |
boolean |
isLast() |
boolean |
next()
Advance to next row
|
void |
setStatementType(SFStatementType statementType) |
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestampabsolute, getMetaData, getMetaDataOfBinds, getNumberOfBinds, getResultSetSerializables, getRow, getSession, isBeforeFirst, isClosed, isFirst, previous, relative, setSession, wasNullprotected SFBaseStatement statement
public SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable, SFBaseStatement statement, boolean sortResult) throws SQLException
The constructor will initialize the ResultSetMetaData.
resultSetSerializable - result data after parsingstatement - statement objectsortResult - true if sort results otherwise falseSQLException - exception raised from general SQL layerspublic SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable, Telemetry telemetryClient, boolean sortResult) throws SQLException
resultSetSerializable - data returned in query responsetelemetryClient - telemetryClientSQLExceptionpublic boolean next()
throws SFException,
SnowflakeSQLException
next in class SFBaseResultSetSFExceptionSnowflakeSQLExceptionprotected Object getObjectInternal(int columnIndex) throws SFException
SFJsonResultSetgetObjectInternal in class SFJsonResultSetcolumnIndex - index of columnsSFException - raises if any error occurspublic boolean isLast()
isLast in class SFBaseResultSetpublic boolean isAfterLast()
isAfterLast in class SFBaseResultSetpublic void close()
throws SnowflakeSQLException
close in class SFBaseResultSetSnowflakeSQLExceptionpublic SFStatementType getStatementType()
getStatementType in class SFBaseResultSetpublic void setStatementType(SFStatementType statementType)
setStatementType in class SFBaseResultSetpublic boolean isArrayBindSupported()
isArrayBindSupported in class SFBaseResultSetpublic String getQueryId()
getQueryId in class SFBaseResultSetCopyright © 2022. All rights reserved.