-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vamsi Manohar <[email protected]>
- Loading branch information
Showing
49 changed files
with
864 additions
and
880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
spark/src/main/java/org/opensearch/sql/spark/asyncquery/AsyncQueryExecutorService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.spark.asyncquery; | ||
|
||
import org.opensearch.sql.spark.asyncquery.model.AsyncQueryExecutionResponse; | ||
import org.opensearch.sql.spark.rest.model.CreateAsyncQueryRequest; | ||
import org.opensearch.sql.spark.rest.model.CreateAsyncQueryResponse; | ||
|
||
/** | ||
* AsyncQueryExecutorService exposes functionality to create, get results and cancel an async query. | ||
*/ | ||
public interface AsyncQueryExecutorService { | ||
|
||
/** | ||
* Creates async query job based on the request and returns queryId in the response. | ||
* | ||
* @param createAsyncQueryRequest createAsyncQueryRequest. | ||
* @return {@link CreateAsyncQueryResponse} | ||
*/ | ||
CreateAsyncQueryResponse createAsyncQuery(CreateAsyncQueryRequest createAsyncQueryRequest); | ||
|
||
/** | ||
* Returns async query response for a given queryId. | ||
* | ||
* @param queryId queryId. | ||
* @return {@link AsyncQueryExecutionResponse} | ||
*/ | ||
AsyncQueryExecutionResponse getAsyncQueryResults(String queryId); | ||
} |
Oops, something went wrong.