public class ClickHouseResultSet extends AbstractResultSet
| Modifier and Type | Field and Description |
|---|---|
protected ByteFragment |
nextLine |
protected int |
rowNumber |
protected ByteFragment[] |
values |
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 and Description |
|---|
ClickHouseResultSet(InputStream is,
int bufferSize,
String db,
String table,
boolean usesWithTotals,
ClickHouseStatement statement,
TimeZone timeZone,
ClickHouseProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Array |
getArray(int columnIndex) |
Array |
getArray(String column) |
BigDecimal |
getBigDecimal(int columnIndex) |
BigDecimal |
getBigDecimal(int columnIndex,
int scale) |
BigDecimal |
getBigDecimal(String columnLabel) |
BigDecimal |
getBigDecimal(String columnLabel,
int scale) |
boolean |
getBoolean(int colNum) |
boolean |
getBoolean(String column) |
byte |
getByte(int colNum) |
byte |
getByte(String column) |
byte[] |
getBytes(int colNum) |
byte[] |
getBytes(String column) |
Date |
getDate(int columnIndex) |
Date |
getDate(String columnLabel) |
String |
getDb() |
double |
getDouble(int columnIndex) |
double |
getDouble(String columnLabel) |
float |
getFloat(int columnIndex) |
float |
getFloat(String columnLabel) |
int |
getInt(int colNum) |
int |
getInt(String column) |
long |
getLong(int colNum) |
long |
getLong(String column) |
long[] |
getLongArray(int colNum) |
long[] |
getLongArray(String column) |
ResultSetMetaData |
getMetaData() |
Object |
getObject(int columnIndex) |
<T> T |
getObject(int columnIndex,
Class<T> type) |
Object |
getObject(String columnLabel) |
<T> T |
getObject(String columnLabel,
Class<T> type) |
int |
getRow() |
short |
getShort(int colNum) |
short |
getShort(String column) |
Statement |
getStatement() |
String |
getString(int colNum) |
String |
getString(String column) |
String |
getTable() |
Time |
getTime(int columnIndex) |
Time |
getTime(String columnLabel) |
Timestamp |
getTimestamp(int columnIndex) |
Timestamp |
getTimestamp(int columnIndex,
Calendar cal) |
Timestamp |
getTimestamp(String column) |
Timestamp |
getTimestamp(String column,
Calendar cal) |
Long |
getTimestampAsLong(int colNum) |
Long |
getTimestampAsLong(int colNum,
TimeZone tz) |
Long |
getTimestampAsLong(String column) |
void |
getTotals() |
int |
getType() |
ByteFragment[] |
getValues() |
boolean |
hasNext() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
next() |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int rows) |
void |
setMaxRows(int maxRows) |
String |
toString() |
boolean |
wasNull() |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBlob, getBlob, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getFetchDirection, getFetchSize, getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRef, getRef, getRowId, getRowId, getSQLXML, getSQLXML, getTime, getTime, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, 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, updateTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectprotected ByteFragment[] values
protected ByteFragment nextLine
protected int rowNumber
public ClickHouseResultSet(InputStream is, int bufferSize, String db, String table, boolean usesWithTotals, ClickHouseStatement statement, TimeZone timeZone, ClickHouseProperties properties) throws IOException
IOExceptionpublic boolean hasNext()
throws SQLException
SQLExceptionpublic boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetisBeforeFirst in class AbstractResultSetSQLExceptionpublic boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetisAfterLast in class AbstractResultSetSQLExceptionpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetisFirst in class AbstractResultSetSQLExceptionpublic boolean isLast()
throws SQLException
isLast in interface ResultSetisLast in class AbstractResultSetSQLExceptionpublic boolean next()
throws SQLException
next in interface ResultSetnext in class AbstractResultSetSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface ResultSetclose in class AbstractResultSetSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface ResultSetisClosed in class AbstractResultSetSQLExceptionpublic void getTotals()
throws SQLException
SQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface ResultSetgetMetaData in class AbstractResultSetSQLExceptionpublic boolean wasNull()
throws SQLException
wasNull in interface ResultSetwasNull in class AbstractResultSetSQLExceptionpublic int getInt(String column)
getInt in interface ResultSetgetInt in class AbstractResultSetpublic boolean getBoolean(String column)
getBoolean in interface ResultSetgetBoolean in class AbstractResultSetpublic long getLong(String column)
getLong in interface ResultSetgetLong in class AbstractResultSetpublic String getString(String column)
getString in interface ResultSetgetString in class AbstractResultSetpublic byte[] getBytes(String column)
getBytes in interface ResultSetgetBytes in class AbstractResultSetpublic Timestamp getTimestamp(String column) throws SQLException
getTimestamp in interface ResultSetgetTimestamp in class AbstractResultSetSQLExceptionpublic Timestamp getTimestamp(String column, Calendar cal) throws SQLException
getTimestamp in interface ResultSetgetTimestamp in class AbstractResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp in interface ResultSetgetTimestamp in class AbstractResultSetSQLExceptionpublic short getShort(String column)
getShort in interface ResultSetgetShort in class AbstractResultSetpublic byte getByte(String column)
getByte in interface ResultSetgetByte in class AbstractResultSetpublic long[] getLongArray(String column)
getLongArray in class AbstractResultSetpublic Array getArray(int columnIndex) throws SQLException
getArray in interface ResultSetgetArray in class AbstractResultSetSQLExceptionpublic Array getArray(String column) throws SQLException
getArray in interface ResultSetgetArray in class AbstractResultSetSQLExceptionpublic double getDouble(String columnLabel) throws SQLException
getDouble in interface ResultSetgetDouble in class AbstractResultSetSQLExceptionpublic float getFloat(String columnLabel) throws SQLException
getFloat in interface ResultSetgetFloat in class AbstractResultSetSQLExceptionpublic Date getDate(String columnLabel) throws SQLException
getDate in interface ResultSetgetDate in class AbstractResultSetSQLExceptionpublic Time getTime(String columnLabel) throws SQLException
getTime in interface ResultSetgetTime in class AbstractResultSetSQLExceptionpublic Object getObject(String columnLabel) throws SQLException
getObject in interface ResultSetgetObject in class AbstractResultSetSQLExceptionpublic String getString(int colNum)
getString in interface ResultSetgetString in class AbstractResultSetpublic int getInt(int colNum)
getInt in interface ResultSetgetInt in class AbstractResultSetpublic boolean getBoolean(int colNum)
getBoolean in interface ResultSetgetBoolean in class AbstractResultSetpublic long getLong(int colNum)
getLong in interface ResultSetgetLong in class AbstractResultSetpublic byte[] getBytes(int colNum)
getBytes in interface ResultSetgetBytes in class AbstractResultSetpublic Long getTimestampAsLong(int colNum)
public Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface ResultSetgetTimestamp in class AbstractResultSetSQLExceptionpublic short getShort(int colNum)
getShort in interface ResultSetgetShort in class AbstractResultSetpublic byte getByte(int colNum)
getByte in interface ResultSetgetByte in class AbstractResultSetpublic long[] getLongArray(int colNum)
public float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetgetFloat in class AbstractResultSetSQLExceptionpublic double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetgetDouble in class AbstractResultSetSQLExceptionpublic Statement getStatement()
getStatement in interface ResultSetgetStatement in class AbstractResultSetpublic Date getDate(int columnIndex) throws SQLException
getDate in interface ResultSetgetDate in class AbstractResultSetSQLExceptionpublic Time getTime(int columnIndex) throws SQLException
getTime in interface ResultSetgetTime in class AbstractResultSetSQLExceptionpublic Object getObject(int columnIndex) throws SQLException
getObject in interface ResultSetgetObject in class AbstractResultSetSQLExceptionpublic int getType()
throws SQLException
getType in interface ResultSetgetType in class AbstractResultSetSQLExceptionpublic int getRow()
throws SQLException
SQLExceptionpublic String getDb()
public String getTable()
public void setMaxRows(int maxRows)
public <T> T getObject(int columnIndex,
Class<T> type)
throws SQLException
SQLExceptionpublic <T> T getObject(String columnLabel, Class<T> type) throws SQLException
SQLExceptionpublic ByteFragment[] getValues()
public BigDecimal getBigDecimal(String columnLabel)
getBigDecimal in interface ResultSetgetBigDecimal in class AbstractResultSetpublic BigDecimal getBigDecimal(int columnIndex)
getBigDecimal in interface ResultSetgetBigDecimal in class AbstractResultSetpublic BigDecimal getBigDecimal(String columnLabel, int scale)
getBigDecimal in interface ResultSetgetBigDecimal in class AbstractResultSetpublic BigDecimal getBigDecimal(int columnIndex, int scale)
getBigDecimal in interface ResultSetgetBigDecimal in class AbstractResultSetpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface ResultSetsetFetchDirection in class AbstractResultSetSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize in interface ResultSetsetFetchSize in class AbstractResultSetSQLExceptionCopyright © 2020. All rights reserved.