Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed May 6, 2024
1 parent f8d8728 commit 1fc25b3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
* The handler for batch query.
* With batch query, queries are executed as single batch. The queries are sent along with job
* execution request to spark.
* The handler for batch query. With batch query, queries are executed as single batch. The queries
* are sent along with job execution request to spark.
*/
@RequiredArgsConstructor
public class BatchQueryHandler extends AsyncQueryHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
* The handler for Index DML (Data Manipulation Language) query.
* Handles DROP/ALT/VACUUM operation for flint indices.
* It will stop streaming query job as needed (e.g. when the flint index is automatically updated
* by a streaming query, the streaming query is stopped when the index is dropped)
* The handler for Index DML (Data Manipulation Language) query. Handles DROP/ALT/VACUUM operation
* for flint indices. It will stop streaming query job as needed (e.g. when the flint index is
* automatically updated by a streaming query, the streaming query is stopped when the index is
* dropped)
*/
@RequiredArgsConstructor
public class IndexDMLHandler extends AsyncQueryHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
* The handler for interactive query.
* With interactive query, a session will be first established and then the session will be reused
* for the following queries(statements). Session is an abstraction of spark job, and once the job
* is started, the job will continuously poll the statements and execute query specified in it.
* The handler for interactive query. With interactive query, a session will be first established
* and then the session will be reused for the following queries(statements). Session is an
* abstraction of spark job, and once the job is started, the job will continuously poll the
* statements and execute query specified in it.
*/
@RequiredArgsConstructor
public class InteractiveQueryHandler extends AsyncQueryHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
* The handler for refresh query.
* Refresh query is one time query request to refresh(update) flint index, and new job is submitted
* to Spark.
* The handler for refresh query. Refresh query is one time query request to refresh(update) flint
* index, and new job is submitted to Spark.
*/
public class RefreshQueryHandler extends BatchQueryHandler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
* The handler for streaming query.
* Streaming query is a job to continuously update flint index.
* The handler for streaming query. Streaming query is a job to continuously update flint index.
* Once started, the job can be stopped by IndexDML query.
*/
public class StreamingQueryHandler extends BatchQueryHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import org.opensearch.sql.spark.dispatcher.model.IndexDMLResult;

/**
* Abstraction over the IndexDMLResult storage.
* It stores the result of IndexDML query execution.
* Abstraction over the IndexDMLResult storage. It stores the result of IndexDML query execution.
*/
public interface IndexDMLResultStorageService {
IndexDMLResult createIndexDMLResult(IndexDMLResult result, String datasourceName);
Expand Down

0 comments on commit 1fc25b3

Please sign in to comment.