public interface DrillResultSet extends ResultSet
ResultSet
.unwrap(java.lang.Class<T>)
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
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getBigDecimal(int columnIndex,
int scale) |
BigDecimal |
getBigDecimal(String columnLabel,
int scale) |
byte |
getByte(int columnIndex) |
byte |
getByte(String columnLabel) |
double |
getDouble(int columnIndex) |
double |
getDouble(String columnLabel) |
float |
getFloat(int columnIndex) |
float |
getFloat(String columnLabel) |
int |
getInt(int columnIndex) |
int |
getInt(String columnLabel) |
long |
getLong(int columnIndex) |
long |
getLong(String columnLabel) |
Object |
getObject(int columnIndex) |
Object |
getObject(String columnLabel) |
String |
getQueryId()
Gets the ID of the associated query (the query whose results this ResultSet
presents).
|
short |
getShort(int columnIndex) |
short |
getShort(String columnLabel) |
String |
getString(int columnIndex) |
String |
getString(String columnLabel) |
boolean |
isWrapperFor(Class<?> iface) |
<T> T |
unwrap(Class<T> iface) |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getFetchDirection, getFetchSize, getHoldability, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, 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, 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, wasNull
String getQueryId() throws SQLException
SQLException
- if this method is called on a closed result set<T> T unwrap(Class<T> iface) throws SQLException
Drill:
Accepts DrillResultSet.class
.
unwrap
in interface Wrapper
SQLException
boolean isWrapperFor(Class<?> iface) throws SQLException
Drill:
Returns true for DrillResultSet.class
.
isWrapperFor
in interface Wrapper
SQLException
String getString(int columnIndex) throws SQLException
Drill: Conversions: Supports conversion from all types.
getString
in interface ResultSet
SQLException
byte getByte(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
SMALLINT
(short
),
INTEGER
(int
), and
BIGINT
(long
)
REAL
(float
),
DOUBLE PRECISION
(double
), and
FLOAT
(float
or double
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of byte
values.
getByte
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to byte
SQLException
short getShort(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
INTEGER
(int
), and
BIGINT
(long
)
REAL
(float
),
DOUBLE PRECISION
(double
), and
FLOAT
(float
or double
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of short
values.
getShort
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to short
SQLException
int getInt(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
SMALLINT
(short
), and
BIGINT
(long
)
REAL
(float
),
DOUBLE PRECISION
(double
), and
FLOAT
(float
or double
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of int
values.
getInt
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to int
SQLException
long getLong(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
SMALLINT
(short
), and
INTEGER
(int
)
REAL
(float
),
DOUBLE PRECISION
(double
), and
FLOAT
(float
or double
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of long
values.
getLong
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to long
SQLException
float getFloat(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
SMALLINT
(short
), and
INTEGER
(int
),
BIGINT
(long
)
DOUBLE PRECISION
(double
) and
FLOAT
(when double
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of float
values.
getFloat
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to float
SQLException
double getDouble(int columnIndex) throws SQLConversionOverflowException, SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
SMALLINT
(short
),
INTEGER
(int
), and
BIGINT
(long
)
REAL
(float
),
FLOAT
(when float
)
DECIMAL
(BigDecimal
)
Conversion throws SQLConversionOverflowException
for a source
value whose magnitude is outside the range of double
values.
getDouble
in interface ResultSet
SQLConversionOverflowException
- if a source value was too large
to convert to double
SQLException
BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),
SMALLINT
(short
),
INTEGER
(int
), and
BIGINT
(long
)
REAL
(float
),
DOUBLE PRECISION
(double
), and
FLOAT
(float
or double
)
getBigDecimal
in interface ResultSet
SQLException
String getString(String columnLabel) throws SQLException
Drill:
For conversions, see getString(int)
.
getString
in interface ResultSet
SQLException
byte getByte(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getByte(int)
.
getByte
in interface ResultSet
SQLConversionOverflowException
SQLException
short getShort(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getShort(int)
.
getShort
in interface ResultSet
SQLConversionOverflowException
SQLException
int getInt(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getInt(int)
.
getInt
in interface ResultSet
SQLConversionOverflowException
SQLException
long getLong(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getLong(int)
.
getLong
in interface ResultSet
SQLConversionOverflowException
SQLException
float getFloat(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getFloat(int)
.
getFloat
in interface ResultSet
SQLConversionOverflowException
SQLException
double getDouble(String columnLabel) throws SQLConversionOverflowException, SQLException
Drill:
For conversions, see getDouble(int)
.
getDouble
in interface ResultSet
SQLConversionOverflowException
SQLException
BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
Drill:
For conversions, see ResultSet.getBigDecimal(int)
.
getBigDecimal
in interface ResultSet
SQLException
Object getObject(int columnIndex) throws SQLException
Drill: Conversions: Supports conversion from all types.
getObject
in interface ResultSet
SQLException
Object getObject(String columnLabel) throws SQLException
Drill:
For conversions, see getObject(int)
.
getObject
in interface ResultSet
SQLException
Copyright © 2022 The Apache Software Foundation. All rights reserved.