Package net.snowflake.client.core
Class SFFixedViewResultSet
- java.lang.Object
-
- net.snowflake.client.core.SFBaseResultSet
-
- net.snowflake.client.core.SFJsonResultSet
-
- net.snowflake.client.core.SFFixedViewResultSet
-
public class SFFixedViewResultSet extends SFJsonResultSet
Fixed view result set. This class iterates through any fixed view implementation and return the objects as rows
-
-
Field Summary
-
Fields inherited from class net.snowflake.client.core.SFBaseResultSet
isClosed, metaDataOfBinds, numberOfBinds, parameters, resultSetMetaData, resultSetSerializable, resultVersion, row, session
-
-
Constructor Summary
Constructors Constructor Description SFFixedViewResultSet(SnowflakeFixedView fixedView, SFBaseFileTransferAgent.CommandType commandType, String queryID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected Object
getObjectInternal(int columnIndex)
Given a column index, get current row's value as an objectString
getQueryId()
SFStatementType
getStatementType()
boolean
isAfterLast()
boolean
isLast()
boolean
next()
Advance to next rowvoid
setStatementType(SFStatementType statementType)
-
Methods inherited from class net.snowflake.client.core.SFJsonResultSet
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp
-
Methods inherited from class net.snowflake.client.core.SFBaseResultSet
absolute, getMetaData, getMetaDataOfBinds, getNumberOfBinds, getResultSetSerializables, getRow, getSession, isArrayBindSupported, isBeforeFirst, isClosed, isFirst, previous, relative, setSession, wasNull
-
-
-
-
Constructor Detail
-
SFFixedViewResultSet
public SFFixedViewResultSet(SnowflakeFixedView fixedView, SFBaseFileTransferAgent.CommandType commandType, String queryID) throws SnowflakeSQLException
- Throws:
SnowflakeSQLException
-
-
Method Detail
-
next
public boolean next() throws SFException
Advance to next row- Overrides:
next
in classSFBaseResultSet
- Returns:
- true if next row exists, false otherwise
- Throws:
SFException
- if failed to get next row
-
getObjectInternal
protected Object getObjectInternal(int columnIndex) throws SFException
Description copied from class:SFJsonResultSet
Given a column index, get current row's value as an object- Specified by:
getObjectInternal
in classSFJsonResultSet
- Parameters:
columnIndex
- index of columns- Returns:
- an object
- Throws:
SFException
- raises if any error occurs
-
close
public void close() throws SnowflakeSQLException
- Overrides:
close
in classSFBaseResultSet
- Throws:
SnowflakeSQLException
-
getStatementType
public SFStatementType getStatementType()
- Specified by:
getStatementType
in classSFBaseResultSet
-
setStatementType
public void setStatementType(SFStatementType statementType) throws SQLException
- Specified by:
setStatementType
in classSFBaseResultSet
- Throws:
SQLException
-
isLast
public boolean isLast()
- Specified by:
isLast
in classSFBaseResultSet
-
isAfterLast
public boolean isAfterLast()
- Specified by:
isAfterLast
in classSFBaseResultSet
-
getQueryId
public String getQueryId()
- Specified by:
getQueryId
in classSFBaseResultSet
-
-