Interface DrillResultSet
- All Superinterfaces:
AutoCloseable
,ResultSet
,Wrapper
- All Known Implementing Classes:
DrillResultSetImpl
ResultSet
.- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal
(int columnIndex, int scale) getBigDecimal
(String columnLabel, int scale) byte
getByte
(int columnIndex) byte
double
getDouble
(int columnIndex) double
float
getFloat
(int columnIndex) float
int
getInt
(int columnIndex) int
long
getLong
(int columnIndex) long
getObject
(int columnIndex) Gets the ID of the associated query (the query whose results this ResultSet presents).short
getShort
(int columnIndex) short
getString
(int columnIndex) boolean
isWrapperFor
(Class<?> iface) <T> T
Methods inherited from interface java.sql.ResultSet
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
-
Method Details
-
getQueryId
Gets the ID of the associated query (the query whose results this ResultSet presents).- Throws:
SQLException
- if this method is called on a closed result set
-
unwrap
Drill: Accepts
DrillResultSet.class
.- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
Drill: Returns true for
DrillResultSet.class
.- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
getString
Drill: Conversions: Supports conversion from all types.
- Specified by:
getString
in interfaceResultSet
- Throws:
SQLException
-
getByte
Drill: Conversions: Supports conversion from types:
SMALLINT
(short
),INTEGER
(int
), andBIGINT
(long
)REAL
(float
),DOUBLE PRECISION
(double
), andFLOAT
(float
ordouble
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range ofbyte
values.- Specified by:
getByte
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert tobyte
SQLException
-
getShort
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),INTEGER
(int
), andBIGINT
(long
)REAL
(float
),DOUBLE PRECISION
(double
), andFLOAT
(float
ordouble
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range ofshort
values.- Specified by:
getShort
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert toshort
SQLException
-
getInt
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),SMALLINT
(short
), andBIGINT
(long
)REAL
(float
),DOUBLE PRECISION
(double
), andFLOAT
(float
ordouble
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range ofint
values.- Specified by:
getInt
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert toint
SQLException
-
getLong
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),SMALLINT
(short
), andINTEGER
(int
)REAL
(float
),DOUBLE PRECISION
(double
), andFLOAT
(float
ordouble
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range oflong
values.- Specified by:
getLong
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert tolong
SQLException
-
getFloat
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),SMALLINT
(short
), andINTEGER
(int
),BIGINT
(long
)DOUBLE PRECISION
(double
) andFLOAT
(whendouble
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range offloat
values.- Specified by:
getFloat
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert tofloat
SQLException
-
getDouble
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),SMALLINT
(short
),INTEGER
(int
), andBIGINT
(long
)REAL
(float
),FLOAT
(whenfloat
)DECIMAL
(BigDecimal
)
Conversion throws
SQLConversionOverflowException
for a source value whose magnitude is outside the range ofdouble
values.- Specified by:
getDouble
in interfaceResultSet
- Throws:
SQLConversionOverflowException
- if a source value was too large to convert todouble
SQLException
-
getBigDecimal
Drill: Conversions: Supports conversion from types:
TINYINT
(byte
),SMALLINT
(short
),INTEGER
(int
), andBIGINT
(long
)REAL
(float
),DOUBLE PRECISION
(double
), andFLOAT
(float
ordouble
)
- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getString
Drill: For conversions, see
getString(int)
.- Specified by:
getString
in interfaceResultSet
- Throws:
SQLException
-
getByte
Drill: For conversions, see
getByte(int)
.- Specified by:
getByte
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getShort
Drill: For conversions, see
getShort(int)
.- Specified by:
getShort
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getInt
Drill: For conversions, see
getInt(int)
.- Specified by:
getInt
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getLong
Drill: For conversions, see
getLong(int)
.- Specified by:
getLong
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getFloat
Drill: For conversions, see
getFloat(int)
.- Specified by:
getFloat
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getDouble
Drill: For conversions, see
getDouble(int)
.- Specified by:
getDouble
in interfaceResultSet
- Throws:
SQLConversionOverflowException
SQLException
-
getBigDecimal
Drill: For conversions, see
ResultSet.getBigDecimal(int)
.- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getObject
Drill: Conversions: Supports conversion from all types.
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
Drill: For conversions, see
getObject(int)
.- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-