Package com.clickhouse.jdbc
Class ClickHouseResultSet
java.lang.Object
com.clickhouse.jdbc.JdbcWrapper
com.clickhouse.jdbc.AbstractResultSet
com.clickhouse.jdbc.ClickHouseResultSet
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
- Direct Known Subclasses:
ClickHouseScrollableResultSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ClickHouseColumn>protected final ClickHouseConfigprotected final Stringprotected final Calendarprotected final JdbcTypeMappingprotected final intprotected final ClickHouseResultSetMetaDataprotected final booleanprotected final ClickHouseResponseprotected final ClickHouseStatementprotected final Stringprotected final booleanFields 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
ConstructorsConstructorDescriptionClickHouseResultSet(String database, String table, ClickHouseStatement statement, ClickHouseResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidensureRead(int columnIndex) intfindColumn(String columnLabel) getArray(int columnIndex) getAsciiStream(int columnIndex) getAsciiStream(String columnLabel) getBigDecimal(int columnIndex) getBigDecimal(int columnIndex, int scale) getBigDecimal(String columnLabel) getBigDecimal(String columnLabel, int scale) getBigInteger(int columnIndex) getBigInteger(String columnLabel) getBinaryStream(int columnIndex) getBinaryStream(String columnLabel) getBlob(int columnIndex) booleangetBoolean(int columnIndex) booleangetBoolean(String columnLabel) bytegetByte(int columnIndex) bytebyte[]getBytes(int columnIndex) byte[]getCharacterStream(int columnIndex) getCharacterStream(String columnLabel) getClob(int columnIndex) String[]protected List<ClickHouseColumn>getDate(int columnIndex) doublegetDouble(int columnIndex) doubleintfloatgetFloat(int columnIndex) floatintgetInt(int columnIndex) intlonggetLong(int columnIndex) longgetNCharacterStream(int columnIndex) getNCharacterStream(String columnLabel) getNClob(int columnIndex) getNString(int columnIndex) getNString(String columnLabel) getObject(int columnIndex) <T> T<T> TgetRef(int columnIndex) intgetRow()getRowId(int columnIndex) shortgetShort(int columnIndex) shortgetSQLXML(int columnIndex) getString(int columnIndex) getTime(int columnIndex) getTimestamp(int columnIndex) getTimestamp(int columnIndex, Calendar cal) getTimestamp(String columnLabel) getTimestamp(String columnLabel, Calendar cal) getUnicodeStream(int columnIndex) getUnicodeStream(String columnLabel) getURL(int columnIndex) protected ClickHouseValuegetValue(int columnIndex) protected booleanhasNext()Check if there is another row.booleanbooleanbooleanisClosed()booleanisFirst()booleanisLast()booleanisWrapperFor(Class<?> iface) booleannext()voidsetFetchSize(int rows) <T> TbooleanwasNull()Methods inherited from class com.clickhouse.jdbc.AbstractResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, ensureOpen, first, getConcurrency, getFetchDirection, getHoldability, getType, getWarnings, insertRow, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, 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, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
-
Field Details
-
database
-
table
-
statement
-
response
-
config
-
wrapObject
protected final boolean wrapObject -
columns
-
defaultCalendar
-
maxRows
protected final int maxRows -
nullAsDefault
protected final boolean nullAsDefault -
metaData
-
mapper
-
defaultTypeMap
-
-
Constructor Details
-
ClickHouseResultSet
public ClickHouseResultSet(String database, String table, ClickHouseStatement statement, ClickHouseResponse response) throws SQLException - Throws:
SQLException
-
-
Method Details
-
ensureRead
- Throws:
SQLException
-
getColumns
-
getValue
- Throws:
SQLException
-
hasNext
Check if there is another row.- Returns:
trueif this result set has another row after the current cursor position,falseelse- Throws:
SQLException- if something goes wrong
-
getBigInteger
- Throws:
SQLException
-
getBigInteger
- Throws:
SQLException
-
getColumnNames
-
close
- Throws:
SQLException
-
findColumn
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getAsciiStream
- Throws:
SQLException
-
getAsciiStream
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBinaryStream
- Throws:
SQLException
-
getBinaryStream
- Throws:
SQLException
-
getBlob
- Throws:
SQLException
-
getBlob
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getByte
- Throws:
SQLException
-
getByte
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getCharacterStream
- Throws:
SQLException
-
getCharacterStream
- Throws:
SQLException
-
getClob
- Throws:
SQLException
-
getClob
- Throws:
SQLException
-
getCursorName
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getFetchSize
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getMetaData
- Throws:
SQLException
-
getNCharacterStream
- Throws:
SQLException
-
getNCharacterStream
- Throws:
SQLException
-
getNClob
- Throws:
SQLException
-
getNClob
- Throws:
SQLException
-
getNString
- Throws:
SQLException
-
getNString
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getRef
- Throws:
SQLException
-
getRef
- Throws:
SQLException
-
getRow
- Throws:
SQLException
-
getRowId
- Throws:
SQLException
-
getRowId
- Throws:
SQLException
-
getSQLXML
- Throws:
SQLException
-
getSQLXML
- Throws:
SQLException
-
getShort
- Throws:
SQLException
-
getShort
- Throws:
SQLException
-
getStatement
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getURL
- Throws:
SQLException
-
getURL
- Throws:
SQLException
-
getUnicodeStream
- Throws:
SQLException
-
getUnicodeStream
- Throws:
SQLException
-
isAfterLast
- Throws:
SQLException
-
isBeforeFirst
- Throws:
SQLException
-
isClosed
- Throws:
SQLException
-
isFirst
- Throws:
SQLException
-
isLast
- Throws:
SQLException
-
next
- Throws:
SQLException
-
setFetchSize
- Throws:
SQLException
-
wasNull
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classJdbcWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classJdbcWrapper- Throws:
SQLException
-