Package com.clickhouse.jdbc.internal
Class MetadataResultSet
java.lang.Object
com.clickhouse.jdbc.ResultSetImpl
com.clickhouse.jdbc.internal.MetadataResultSet
- All Implemented Interfaces:
JdbcV2Wrapper,AutoCloseable,ResultSet,Wrapper
-
Field Summary
Fields inherited from class com.clickhouse.jdbc.ResultSetImpl
readerFields 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 -
Method Summary
Modifier and TypeMethodDescriptionbytegetByte(int columnIndex) byteintgetInt(int columnIndex) intlonggetLong(int columnIndex) longshortgetShort(int columnIndex) shortgetString(int columnIndex) transform(String columnLabel, com.clickhouse.data.ClickHouseColumn column, UnaryOperator<String> transformer) Registers a transformer function for a given column.Methods inherited from class com.clickhouse.jdbc.ResultSetImpl
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getSQLXML, getSQLXML, getStatement, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, setMetaData, 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, wasNullMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.clickhouse.jdbc.JdbcV2Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
MetadataResultSet
- Throws:
SQLException
-
-
Method Details
-
transform
public MetadataResultSet transform(String columnLabel, com.clickhouse.data.ClickHouseColumn column, UnaryOperator<String> transformer) Registers a transformer function for a given column. The transformer takes the original String value and returns a new String.- Parameters:
columnLabel- The name of the column (case-insensitive).transformer- The function that transforms the value.
-
getString
- Specified by:
getStringin interfaceResultSet- Overrides:
getStringin classResultSetImpl- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Overrides:
getIntin classResultSetImpl- Throws:
SQLException
-
getString
- Specified by:
getStringin interfaceResultSet- Overrides:
getStringin classResultSetImpl- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Overrides:
getIntin classResultSetImpl- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Overrides:
getBytein classResultSetImpl- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Overrides:
getShortin classResultSetImpl- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Overrides:
getLongin classResultSetImpl- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Overrides:
getBytein classResultSetImpl- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Overrides:
getShortin classResultSetImpl- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Overrides:
getLongin classResultSetImpl- Throws:
SQLException
-
getSchema
- Overrides:
getSchemain classResultSetImpl
-