public class QueriesApi
extends java.lang.Object
Constructor and Description |
---|
QueriesApi() |
QueriesApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
QueryPaginationResponse |
get(java.lang.String queryId,
java.lang.String cursor,
java.lang.Integer docs,
java.lang.Integer offset)
Fetch paginated query results
|
ApiClient |
getApiClient() |
com.squareup.okhttp.Call |
getAsync(java.lang.String queryId,
java.lang.String cursor,
java.lang.Integer docs,
java.lang.Integer offset,
ApiCallback<QueryPaginationResponse> callback)
Fetch paginated query results (asynchronously)
|
com.squareup.okhttp.Call |
getCall(java.lang.String queryId,
java.lang.String cursor,
java.lang.Integer docs,
java.lang.Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for get
|
ApiResponse<QueryPaginationResponse> |
getWithHttpInfo(java.lang.String queryId,
java.lang.String cursor,
java.lang.Integer docs,
java.lang.Integer offset)
Fetch paginated query results
|
QueryResponse |
query(QueryRequest body)
Query Make a SQL query to Rockset.
|
com.squareup.okhttp.Call |
queryAsync(QueryRequest body,
ApiCallback<QueryResponse> callback)
Query (asynchronously) Make a SQL query to Rockset.
|
com.squareup.okhttp.Call |
queryCall(QueryRequest body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for query
|
ApiResponse<QueryResponse> |
queryWithHttpInfo(QueryRequest body)
Query Make a SQL query to Rockset.
|
void |
setApiClient(ApiClient apiClient) |
ValidateQueryResponse |
validate(QueryRequest body)
Validate Query Validate a SQL query with Rockset's parser and planner.
|
com.squareup.okhttp.Call |
validateAsync(QueryRequest body,
ApiCallback<ValidateQueryResponse> callback)
Validate Query (asynchronously) Validate a SQL query with Rockset's parser and planner.
|
com.squareup.okhttp.Call |
validateCall(QueryRequest body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validate
|
ApiResponse<ValidateQueryResponse> |
validateWithHttpInfo(QueryRequest body)
Validate Query Validate a SQL query with Rockset's parser and planner.
|
public QueriesApi()
public QueriesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getCall(java.lang.String queryId, java.lang.String cursor, java.lang.Integer docs, java.lang.Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws java.lang.Exception
queryId
- (required)cursor
- (required)docs
- (optional)offset
- (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerjava.lang.Exception
- If fail to serialize the request body objectpublic QueryPaginationResponse get(java.lang.String queryId, java.lang.String cursor, java.lang.Integer docs, java.lang.Integer offset) throws java.lang.Exception
queryId
- (required)cursor
- (required)docs
- (optional)offset
- (optional)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic ApiResponse<QueryPaginationResponse> getWithHttpInfo(java.lang.String queryId, java.lang.String cursor, java.lang.Integer docs, java.lang.Integer offset) throws java.lang.Exception
queryId
- (required)cursor
- (required)docs
- (optional)offset
- (optional)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic com.squareup.okhttp.Call getAsync(java.lang.String queryId, java.lang.String cursor, java.lang.Integer docs, java.lang.Integer offset, ApiCallback<QueryPaginationResponse> callback) throws java.lang.Exception
queryId
- (required)cursor
- (required)docs
- (optional)offset
- (optional)callback
- The callback to be executed when the API call finishesjava.lang.Exception
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call queryCall(QueryRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws java.lang.Exception
body
- JSON object (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerjava.lang.Exception
- If fail to serialize the request body objectpublic QueryResponse query(QueryRequest body) throws java.lang.Exception
body
- JSON object (required)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic ApiResponse<QueryResponse> queryWithHttpInfo(QueryRequest body) throws java.lang.Exception
body
- JSON object (required)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic com.squareup.okhttp.Call queryAsync(QueryRequest body, ApiCallback<QueryResponse> callback) throws java.lang.Exception
body
- JSON object (required)callback
- The callback to be executed when the API call finishesjava.lang.Exception
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateCall(QueryRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws java.lang.Exception
body
- JSON object (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerjava.lang.Exception
- If fail to serialize the request body objectpublic ValidateQueryResponse validate(QueryRequest body) throws java.lang.Exception
body
- JSON object (required)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic ApiResponse<ValidateQueryResponse> validateWithHttpInfo(QueryRequest body) throws java.lang.Exception
body
- JSON object (required)java.lang.Exception
- If fail to call the API, e.g. server error or cannot deserialize the response
bodypublic com.squareup.okhttp.Call validateAsync(QueryRequest body, ApiCallback<ValidateQueryResponse> callback) throws java.lang.Exception
body
- JSON object (required)callback
- The callback to be executed when the API call finishesjava.lang.Exception
- If fail to process the API call, e.g. serializing the request body object