Class SqlApi


  • public class SqlApi
    extends java.lang.Object
    • Constructor Detail

      • SqlApi

        public SqlApi()
      • SqlApi

        public SqlApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • runSQLCall

        public okhttp3.Call runSQLCall​(java.lang.String namespace,
                                       SQLParameters sql,
                                       java.lang.String acceptEncoding,
                                       ApiCallback _callback)
                                throws ApiException
        Build call for runSQL
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • runSQL

        public java.util.List<java.lang.Object> runSQL​(java.lang.String namespace,
                                                       SQLParameters sql,
                                                       java.lang.String acceptEncoding)
                                                throws ApiException
        Run a sql query
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        Returns:
        List<Object>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • runSQLBytes

        public byte[] runSQLBytes​(java.lang.String namespace,
                                  SQLParameters sql,
                                  java.lang.String acceptEncoding)
                           throws ApiException
        Run a sql query
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        Returns:
        byte[]
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • runSQLWithHttpInfo

        public ApiResponse<java.util.List<java.lang.Object>> runSQLWithHttpInfo​(java.lang.String namespace,
                                                                                SQLParameters sql,
                                                                                java.lang.String acceptEncoding)
                                                                         throws ApiException
        Run a sql query
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        Returns:
        ApiResponse<List<Object>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • runSQLWithHttpInfoBytes

        public ApiResponse<byte[]> runSQLWithHttpInfoBytes​(java.lang.String namespace,
                                                           SQLParameters sql,
                                                           java.lang.String acceptEncoding)
                                                    throws ApiException
        Run a sql query
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        Returns:
        ApiResponse with byte[]
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • runSQLAsync

        public okhttp3.Call runSQLAsync​(java.lang.String namespace,
                                        SQLParameters sql,
                                        java.lang.String acceptEncoding,
                                        ApiCallback<java.util.List<java.lang.Object>> _callback)
                                 throws ApiException
        (asynchronously) Run a sql query
        Parameters:
        namespace - namespace to run task under is in (an organization name or user's username) (required)
        sql - sql being submitted (required)
        acceptEncoding - Encoding to use (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object