Interface IDatabricksClient

    • Method Detail

      • getResultChunks

        ChunkLinkFetchResult getResultChunks​(StatementId statementId,
                                             long chunkIndex,
                                             long chunkStartRowOffset)
                                      throws SQLException
        Fetches the chunk links for given chunk index and statement-Id.

        For SEA clients, the chunkIndex is used to identify which chunk to fetch. For Thrift clients, the rowOffset is used with FETCH_ABSOLUTE orientation to seek to the correct position.

        The returned ChunkLinkFetchResult contains the chunk links and continuation information:

        • SEA: hasMore derived from last link's nextChunkIndex
        • Thrift: hasMore from server's hasMoreRows flag, nextRowOffset for continuation
        Parameters:
        statementId - statement-Id for which chunk should be fetched
        chunkIndex - chunkIndex for which chunk should be fetched
        chunkStartRowOffset - the row offset where the chunk starts in the result set
        Throws:
        SQLException
      • getResultChunksData

        ResultData getResultChunksData​(StatementId statementId,
                                       long chunkIndex)
                                throws DatabricksSQLException
        Fetches the result data for given chunk index and statement-Id.
        Parameters:
        statementId - statement-Id for which chunk data should be fetched
        chunkIndex - chunkIndex for which chunk data should be fetched
        Returns:
        ResultData containing the chunk's data array and metadata
        Throws:
        DatabricksSQLException
      • resetAccessToken

        void resetAccessToken​(String newAccessToken)
        Update the access token based on new value provided by the customer
        Parameters:
        newAccessToken - new access token value
      • getDatabricksConfig

        com.databricks.sdk.core.DatabricksConfig getDatabricksConfig()
        Retrieves underlying DatabricksConfig