Package io.tiledb.cloud.rest_api.api
Class SqlApi
- java.lang.Object
-
- io.tiledb.cloud.rest_api.api.SqlApi
-
public class SqlApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClient
getApiClient()
java.lang.String
getCustomBaseUrl()
int
getHostIndex()
java.util.List<java.lang.Object>
runSQL(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding)
Run a sql queryokhttp3.Call
runSQLAsync(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding, ApiCallback<java.util.List<java.lang.Object>> _callback)
(asynchronously) Run a sql querybyte[]
runSQLBytes(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding)
Run a sql queryokhttp3.Call
runSQLCall(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding, ApiCallback _callback)
Build call for runSQLApiResponse<java.util.List<java.lang.Object>>
runSQLWithHttpInfo(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding)
Run a sql queryApiResponse<byte[]>
runSQLWithHttpInfoBytes(java.lang.String namespace, SQLParameters sql, java.lang.String acceptEncoding)
Run a sql queryvoid
setApiClient(ApiClient apiClient)
void
setCustomBaseUrl(java.lang.String customBaseUrl)
void
setHostIndex(int hostIndex)
-
-
-
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
-
-