Package org.apache.flink.table.jdbc
Class FlinkResultSet
- java.lang.Object
-
- org.apache.flink.table.jdbc.BaseResultSet
-
- org.apache.flink.table.jdbc.FlinkResultSet
-
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
public class FlinkResultSet extends BaseResultSet
ResultSet for flink jdbc driver. Only Batch Mode queries are supported. If you force to submit streaming queries, you may get unrecognized updates, deletions and other results.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description FlinkResultSet(Statement statement, org.apache.flink.table.client.gateway.StatementResult result)FlinkResultSet(Statement statement, CloseableResultIterator<org.apache.flink.table.data.RowData> iterator, org.apache.flink.table.catalog.ResolvedSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intfindColumn(String columnLabel)ArraygetArray(int columnIndex)ArraygetArray(String columnLabel)BigDecimalgetBigDecimal(int columnIndex)BigDecimalgetBigDecimal(int columnIndex, int scale)BigDecimalgetBigDecimal(String columnLabel)BigDecimalgetBigDecimal(String columnLabel, int scale)booleangetBoolean(int columnIndex)booleangetBoolean(String columnLabel)bytegetByte(int columnIndex)bytegetByte(String columnLabel)byte[]getBytes(int columnIndex)byte[]getBytes(String columnLabel)DategetDate(int columnIndex)DategetDate(int columnIndex, Calendar cal)DategetDate(String columnLabel)DategetDate(String columnLabel, Calendar cal)doublegetDouble(int columnIndex)doublegetDouble(String columnLabel)floatgetFloat(int columnIndex)floatgetFloat(String columnLabel)intgetInt(int columnIndex)intgetInt(String columnLabel)longgetLong(int columnIndex)longgetLong(String columnLabel)ResultSetMetaDatagetMetaData()ObjectgetObject(int columnIndex)ObjectgetObject(String columnLabel)shortgetShort(int columnIndex)shortgetShort(String columnLabel)StatementgetStatement()StringgetString(int columnIndex)StringgetString(String columnLabel)TimegetTime(int columnIndex)TimegetTime(int columnIndex, Calendar cal)TimegetTime(String columnLabel)TimegetTime(String columnLabel, Calendar cal)TimestampgetTimestamp(int columnIndex)TimestampgetTimestamp(int columnIndex, Calendar cal)TimestampgetTimestamp(String columnLabel)TimestampgetTimestamp(String columnLabel, Calendar cal)booleanisClosed()booleannext()booleanwasNull()-
Methods inherited from class org.apache.flink.table.jdbc.BaseResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, first, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBlob, getBlob, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getFetchDirection, getFetchSize, getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getSQLXML, getSQLXML, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, 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, updateTimestamp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
-
-
-
Constructor Detail
-
FlinkResultSet
public FlinkResultSet(Statement statement, org.apache.flink.table.client.gateway.StatementResult result)
-
FlinkResultSet
public FlinkResultSet(Statement statement, CloseableResultIterator<org.apache.flink.table.data.RowData> iterator, org.apache.flink.table.catalog.ResolvedSchema schema)
-
-
Method Detail
-
next
public boolean next() throws SQLException- Throws:
SQLException
-
close
public void close() throws SQLException- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException- Throws:
SQLException
-
getString
public String getString(int columnIndex) throws SQLException
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(int columnIndex) throws SQLException- Throws:
SQLException
-
getByte
public byte getByte(int columnIndex) throws SQLException- Throws:
SQLException
-
getShort
public short getShort(int columnIndex) throws SQLException- Throws:
SQLException
-
getInt
public int getInt(int columnIndex) throws SQLException- Throws:
SQLException
-
getLong
public long getLong(int columnIndex) throws SQLException- Throws:
SQLException
-
getFloat
public float getFloat(int columnIndex) throws SQLException- Throws:
SQLException
-
getDouble
public double getDouble(int columnIndex) throws SQLException- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
- Throws:
SQLException
-
getBytes
public byte[] getBytes(int columnIndex) throws SQLException- Throws:
SQLException
-
getDate
public Date getDate(int columnIndex) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(int columnIndex) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException
- Throws:
SQLException
-
getString
public String getString(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(String columnLabel) throws SQLException
- Throws:
SQLException
-
getByte
public byte getByte(String columnLabel) throws SQLException
- Throws:
SQLException
-
getShort
public short getShort(String columnLabel) throws SQLException
- Throws:
SQLException
-
getInt
public int getInt(String columnLabel) throws SQLException
- Throws:
SQLException
-
getLong
public long getLong(String columnLabel) throws SQLException
- Throws:
SQLException
-
getFloat
public float getFloat(String columnLabel) throws SQLException
- Throws:
SQLException
-
getDouble
public double getDouble(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
- Throws:
SQLException
-
getBytes
public byte[] getBytes(String columnLabel) throws SQLException
- Throws:
SQLException
-
getDate
public Date getDate(String columnLabel) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(String columnLabel) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnLabel) throws SQLException
- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Throws:
SQLException
-
getObject
public Object getObject(int columnIndex) throws SQLException
- Throws:
SQLException
-
getObject
public Object getObject(String columnLabel) throws SQLException
- Throws:
SQLException
-
findColumn
public int findColumn(String columnLabel) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(String columnLabel) throws SQLException
- Throws:
SQLException
-
getStatement
public Statement getStatement() throws SQLException
- Throws:
SQLException
-
getArray
public Array getArray(int columnIndex) throws SQLException
- Throws:
SQLException
-
getArray
public Array getArray(String columnLabel) throws SQLException
- Throws:
SQLException
-
getDate
public Date getDate(int columnIndex, Calendar cal) throws SQLException
- Throws:
SQLException
-
getDate
public Date getDate(String columnLabel, Calendar cal) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(int columnIndex, Calendar cal) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(String columnLabel, Calendar cal) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException
- Throws:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- Throws:
SQLException
-
-