-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spotless] Applying Google Code Format for core/src/main files #2 #313
Changes from all commits
c25475d
e202d9b
84b3fe4
b192771
7a8bc41
326671f
289ad96
3d5487a
641f959
86f084b
16b5952
d890015
1912008
603c732
4076a2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is also present in #312 with other changes |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,7 @@ | |
package org.opensearch.sql.exception; | ||
|
||
/** | ||
* This should be thrown on serialization of a PhysicalPlan tree if paging is finished. | ||
* Processing of such exception should outcome of responding no cursor to the user. | ||
* This should be thrown on serialization of a PhysicalPlan tree if paging is finished. Processing | ||
* of such exception should outcome of responding no cursor to the user. | ||
*/ | ||
public class NoCursorException extends RuntimeException { | ||
} | ||
public class NoCursorException extends RuntimeException {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3,7 +3,6 @@ | |||||||||
* SPDX-License-Identifier: Apache-2.0 | ||||||||||
*/ | ||||||||||
|
||||||||||
|
||||||||||
package org.opensearch.sql.executor; | ||||||||||
|
||||||||||
import java.util.List; | ||||||||||
|
@@ -17,39 +16,33 @@ | |||||||||
import org.opensearch.sql.executor.pagination.Cursor; | ||||||||||
import org.opensearch.sql.planner.physical.PhysicalPlan; | ||||||||||
|
||||||||||
/** | ||||||||||
* Execution engine that encapsulates execution details. | ||||||||||
*/ | ||||||||||
/** Execution engine that encapsulates execution details. */ | ||||||||||
public interface ExecutionEngine { | ||||||||||
|
||||||||||
/** | ||||||||||
* Execute physical plan and call back response listener. | ||||||||||
* Todo. deprecated this interface after finalize {@link ExecutionContext}. | ||||||||||
* Execute physical plan and call back response listener. Todo. deprecated this interface after | ||||||||||
* finalize {@link ExecutionContext}. | ||||||||||
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
* | ||||||||||
* @param plan executable physical plan | ||||||||||
* @param plan executable physical plan | ||||||||||
* @param listener response listener | ||||||||||
*/ | ||||||||||
void execute(PhysicalPlan plan, ResponseListener<QueryResponse> listener); | ||||||||||
|
||||||||||
/** | ||||||||||
* Execute physical plan with {@link ExecutionContext} and call back response listener. | ||||||||||
*/ | ||||||||||
void execute(PhysicalPlan plan, ExecutionContext context, | ||||||||||
ResponseListener<QueryResponse> listener); | ||||||||||
/** Execute physical plan with {@link ExecutionContext} and call back response listener. */ | ||||||||||
void execute( | ||||||||||
PhysicalPlan plan, ExecutionContext context, ResponseListener<QueryResponse> listener); | ||||||||||
|
||||||||||
/** | ||||||||||
* Explain physical plan and call back response listener. The reason why this has to | ||||||||||
* be part of execution engine interface is that the physical plan probably needs to | ||||||||||
* be executed to get more info for profiling, such as actual execution time, rows fetched etc. | ||||||||||
* Explain physical plan and call back response listener. The reason why this has to be part of | ||||||||||
* execution engine interface is that the physical plan probably needs to be executed to get more | ||||||||||
* info for profiling, such as actual execution time, rows fetched etc. | ||||||||||
* | ||||||||||
* @param plan physical plan to explain | ||||||||||
* @param plan physical plan to explain | ||||||||||
* @param listener response listener | ||||||||||
*/ | ||||||||||
void explain(PhysicalPlan plan, ResponseListener<ExplainResponse> listener); | ||||||||||
|
||||||||||
/** | ||||||||||
* Data class that encapsulates ExprValue. | ||||||||||
*/ | ||||||||||
/** Data class that encapsulates ExprValue. */ | ||||||||||
@Data | ||||||||||
class QueryResponse { | ||||||||||
private final Schema schema; | ||||||||||
|
@@ -70,8 +63,8 @@ public static class Column { | |||||||||
} | ||||||||||
|
||||||||||
/** | ||||||||||
* Data class that encapsulates explain result. This can help decouple core engine | ||||||||||
* from concrete explain response format. | ||||||||||
* Data class that encapsulates explain result. This can help decouple core engine from concrete | ||||||||||
* explain response format. | ||||||||||
*/ | ||||||||||
@Data | ||||||||||
class ExplainResponse { | ||||||||||
|
@@ -86,5 +79,4 @@ class ExplainResponseNode { | |||||||||
private Map<String, Object> description; | ||||||||||
private List<ExplainResponseNode> children; | ||||||||||
} | ||||||||||
|
||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already included this file in part 1 in #312