Interface IDatabricksResultSet

    • Method Detail

      • getStatementId

        String getStatementId()
        Returns statement-Id of associated statement
        Returns:
        statement-Id
      • getStatementStatus

        com.databricks.sdk.service.sql.StatementStatus getStatementStatus()
        Fetches Statement status for underlying statement
        Returns:
        statement status
      • getUpdateCount

        long getUpdateCount()
                     throws SQLException
        Returns update count for underlying statement execution. Returns 0 for a query statement.
        Returns:
        update count
        Throws:
        SQLException
      • hasUpdateCount

        boolean hasUpdateCount()
                        throws SQLException
        Checks if there is an update count for underlying statement execution
        Returns:
        true for DML commands
        Throws:
        SQLException
      • getMap

        Map<String,​Object> getMap​(int columnIndex)
                                 throws SQLException
        Retrieves the SQL `Map` from the specified column index in the result set.
        Parameters:
        columnIndex - the index of the column in the result set (1-based)
        Returns:
        a `Map` if the column contains a map; `null` if the value is SQL `NULL`
        Throws:
        SQLException - if the column is not of `MAP` type or if any SQL error occurs
      • getStruct

        Struct getStruct​(int columnIndex)
                  throws SQLException
        Retrieves the SQL `Struct` from the specified column index in the result set.
        Parameters:
        columnIndex - the index of the column in the result set (1-based)
        Returns:
        a `Struct` object if the column contains a struct; `null` if the value is SQL `NULL`
        Throws:
        SQLException - if the column is not of `STRUCT` type or if any SQL error occurs