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.SFJsonResultSet
converters
-
Fields inherited from class net.snowflake.client.core.SFBaseResultSet
isClosed, metaDataOfBinds, numberOfBinds, OBJECT_MAPPER, parameters, resultSetMetaData, resultSetSerializable, resultVersion, row, session, sessionTimeZone
-
-
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 voidclose()protected ObjectgetObjectInternal(int columnIndex)Given a column index, get current row's value as an objectStringgetQueryId()SFStatementTypegetStatementType()booleanisAfterLast()booleanisLast()booleannext()Advance to next rowvoidsetStatementType(SFStatementType statementType)-
Methods inherited from class net.snowflake.client.core.SFJsonResultSet
convertToDate, convertToTime, convertToTimestamp, createSqlInputForColumn, getArray, getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getConverters, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObjectWithoutString, getShort, getString, getTime, getTimestamp
-
Methods inherited from class net.snowflake.client.core.SFBaseResultSet
absolute, convertStringToDate, convertStringToTime, convertStringToTimestamp, createJsonSqlInputForColumn, getJsonArray, getMetaData, getMetaDataOfBinds, getNumberOfBinds, getResultSetSerializables, getRow, getSession, getSessionTimezone, getSessionTimeZone, 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 SFExceptionAdvance to next row- Overrides:
nextin 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:SFJsonResultSetGiven a column index, get current row's value as an object- Specified by:
getObjectInternalin classSFJsonResultSet- Parameters:
columnIndex- index of columns- Returns:
- an object
- Throws:
SFException- raises if any error occurs
-
close
public void close() throws SnowflakeSQLException- Overrides:
closein classSFBaseResultSet- Throws:
SnowflakeSQLException
-
getStatementType
public SFStatementType getStatementType()
- Specified by:
getStatementTypein classSFBaseResultSet
-
setStatementType
public void setStatementType(SFStatementType statementType) throws SQLException
- Specified by:
setStatementTypein classSFBaseResultSet- Throws:
SQLException
-
isLast
public boolean isLast()
- Specified by:
isLastin classSFBaseResultSet
-
isAfterLast
public boolean isAfterLast()
- Specified by:
isAfterLastin classSFBaseResultSet
-
getQueryId
public String getQueryId()
- Specified by:
getQueryIdin classSFBaseResultSet
-
-