public class SFResultSet extends SFJsonResultSet
Modifier and Type | Field and Description |
---|---|
protected SFStatement |
statement |
isClosed, metaDataOfBinds, numberOfBinds, parameters, resultSetMetaData, resultSetSerializable, resultVersion, row, session
Constructor and Description |
---|
SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable,
SFStatement 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, getTimestamp
absolute, getMetaData, getMetaDataOfBinds, getNumberOfBinds, getResultSetSerializables, getRow, getSession, isBeforeFirst, isClosed, isFirst, previous, relative, setSession, wasNull
protected SFStatement statement
public SFResultSet(SnowflakeResultSetSerializableV1 resultSetSerializable, SFStatement 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
- telemetryClientSQLException
public boolean next() throws SFException, SnowflakeSQLException
next
in class SFBaseResultSet
SFException
SnowflakeSQLException
protected Object getObjectInternal(int columnIndex) throws SFException
SFJsonResultSet
getObjectInternal
in class SFJsonResultSet
columnIndex
- index of columnsSFException
- raises if any error occurspublic boolean isLast()
isLast
in class SFBaseResultSet
public boolean isAfterLast()
isAfterLast
in class SFBaseResultSet
public void close() throws SnowflakeSQLException
close
in class SFBaseResultSet
SnowflakeSQLException
public SFStatementType getStatementType()
getStatementType
in class SFBaseResultSet
public void setStatementType(SFStatementType statementType)
setStatementType
in class SFBaseResultSet
public boolean isArrayBindSupported()
isArrayBindSupported
in class SFBaseResultSet
public String getQueryId()
getQueryId
in class SFBaseResultSet
Copyright © 2021. All rights reserved.