Package ru.yandex.clickhouse.response
Class ClickHouseScrollableResultSet
- java.lang.Object
-
- ru.yandex.clickhouse.response.AbstractResultSet
-
- ru.yandex.clickhouse.response.ClickHouseResultSet
-
- ru.yandex.clickhouse.response.ClickHouseScrollableResultSet
-
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
public class ClickHouseScrollableResultSet extends ClickHouseResultSet
-
-
Field Summary
-
Fields inherited from class ru.yandex.clickhouse.response.ClickHouseResultSet
nextLine, rowNumber, values
-
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
-
-
Constructor Summary
Constructors Constructor Description ClickHouseScrollableResultSet(InputStream is, int bufferSize, String db, String table, boolean usesWithTotals, ClickHouseStatement statement, TimeZone timezone, ClickHouseProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabsolute(int row)voidafterLast()voidbeforeFirst()booleanfirst()intgetRow()intgetType()booleanhasNext()Check if there is another row.booleanisAfterLast()booleanisBeforeFirst()booleanisFirst()booleanlast()booleannext()booleanprevious()booleanrelative(int rows)-
Methods inherited from class ru.yandex.clickhouse.response.ClickHouseResultSet
close, findColumn, getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getColumnNames, getDate, getDate, getDate, getDb, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getLongArray, getLongArray, getMetaData, getObject, getObject, getObject, getObject, getShort, getShort, getStatement, getString, getString, getTable, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getTimestampAsLong, getTimestampAsLong, getTotals, getValues, isClosed, isLast, setFetchDirection, setFetchSize, setMaxRows, toString, wasNull
-
Methods inherited from class ru.yandex.clickhouse.response.AbstractResultSet
cancelRowUpdates, clearWarnings, deleteRow, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBlob, getBlob, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getFetchDirection, getFetchSize, getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRef, getRef, getRowId, getRowId, getSQLXML, getSQLXML, getTime, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isWrapperFor, moveToCurrentRow, moveToInsertRow, refreshRow, rowDeleted, rowInserted, rowUpdated, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
-
-
-
Constructor Detail
-
ClickHouseScrollableResultSet
public ClickHouseScrollableResultSet(InputStream is, int bufferSize, String db, String table, boolean usesWithTotals, ClickHouseStatement statement, TimeZone timezone, ClickHouseProperties properties) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hasNext
public boolean hasNext() throws SQLExceptionDescription copied from class:ClickHouseResultSetCheck if there is another row.- Overrides:
hasNextin classClickHouseResultSet- Returns:
trueif this result set has another row after the current cursor position,falseelse- Throws:
SQLException- if something goes wrong
-
next
public boolean next() throws SQLException- Specified by:
nextin interfaceResultSet- Overrides:
nextin classClickHouseResultSet- Throws:
SQLException
-
getType
public int getType() throws SQLException- Specified by:
getTypein interfaceResultSet- Overrides:
getTypein classClickHouseResultSet- Throws:
SQLException
-
getRow
public int getRow() throws SQLException- Specified by:
getRowin interfaceResultSet- Overrides:
getRowin classClickHouseResultSet- Throws:
SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws SQLException- Specified by:
isBeforeFirstin interfaceResultSet- Overrides:
isBeforeFirstin classClickHouseResultSet- Throws:
SQLException
-
isAfterLast
public boolean isAfterLast() throws SQLException- Specified by:
isAfterLastin interfaceResultSet- Overrides:
isAfterLastin classClickHouseResultSet- Throws:
SQLException
-
isFirst
public boolean isFirst() throws SQLException- Specified by:
isFirstin interfaceResultSet- Overrides:
isFirstin classClickHouseResultSet- Throws:
SQLException
-
beforeFirst
public void beforeFirst() throws SQLException- Specified by:
beforeFirstin interfaceResultSet- Overrides:
beforeFirstin classAbstractResultSet- Throws:
SQLException
-
afterLast
public void afterLast() throws SQLException- Specified by:
afterLastin interfaceResultSet- Overrides:
afterLastin classAbstractResultSet- Throws:
SQLException
-
first
public boolean first() throws SQLException- Specified by:
firstin interfaceResultSet- Overrides:
firstin classAbstractResultSet- Throws:
SQLException
-
last
public boolean last() throws SQLException- Specified by:
lastin interfaceResultSet- Overrides:
lastin classAbstractResultSet- Throws:
SQLException
-
absolute
public boolean absolute(int row) throws SQLException- Specified by:
absolutein interfaceResultSet- Overrides:
absolutein classAbstractResultSet- Throws:
SQLException
-
relative
public boolean relative(int rows) throws SQLException- Specified by:
relativein interfaceResultSet- Overrides:
relativein classAbstractResultSet- Throws:
SQLException
-
previous
public boolean previous() throws SQLException- Specified by:
previousin interfaceResultSet- Overrides:
previousin classAbstractResultSet- Throws:
SQLException
-
-