Skip to content

Commit d52b65c

Browse files
committed
spotless apply, fixing include for spotless build.gradle and adding pre tag.
Signed-off-by: Mitchell Gale <[email protected]>
1 parent a2a633a commit d52b65c

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ repositories {
8484
spotless {
8585
java {
8686
target fileTree('.') {
87-
include 'core/src/main/java/org/opensearch/sql/planner/*.java',
88-
'core/src/main/java/org/opensearch/sql/storage/*.java',
89-
'core/src/main/java/org/opensearch/sql/utils/*.java'
87+
include 'core/src/main/java/org/opensearch/sql/planner/**/*.java',
88+
'core/src/main/java/org/opensearch/sql/storage/**/*.java',
89+
'core/src/main/java/org/opensearch/sql/utils/**/*.java'
9090
exclude '**/build/**', '**/build-*/**'
9191
}
9292
// importOrder()

core/src/main/java/org/opensearch/sql/planner/logical/LogicalValues.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@
1616
* Logical operator which is a sequence of literal rows (like a relation).<br>
1717
* Basically, Values operator is used to create rows of constant literals<br>
1818
* "out of nothing" which is corresponding with VALUES clause in SQL. <br>
19-
* Mostly all rows must have the same number of literals and each column should
20-
* have same type or can be converted implicitly. In particular, typical use cases include:
19+
* Mostly all rows must have the same number of literals and each column should have same type or
20+
* can be converted implicitly. In particular, typical use cases include:
21+
*
2122
* <ol>
22-
* <li>Project without relation involved.</li>
23-
* <li>Defining query or insertion without a relation.</li>
23+
* <li>Project without relation involved.
24+
* <li>Defining query or insertion without a relation.
2425
* </ol>
25-
* Take the
26-
* following logical plan for example:
2726
*
28-
* LogicalProject(expr=[log(2),true,1+2])<br>
29-
* &ensp; |_ LogicalValues([[]]) #an empty row so that Project can evaluate its expressions in next()
27+
* Take the following logical plan for example:
28+
*
29+
* <p>LogicalProject(expr=[log(2),true,1+2])<br>
30+
* &ensp; |_ LogicalValues([[]]) #an empty row so that Project can evaluate its expressions in
31+
* next()
3032
*/
3133
@ToString
3234
@Getter

core/src/main/java/org/opensearch/sql/planner/optimizer/LogicalPlanOptimizer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
/**
2222
* {@link LogicalPlan} Optimizer.<br>
2323
* The Optimizer will run in the TopDown manner.<br>
24+
*
2425
* <ol>
25-
* <li>Optimize the current node with all the rules.</li>
26-
* <li>Optimize the all the child nodes with all the rules.</li>
27-
* <li>In case the child node could change, Optimize the current node again.</li>
26+
* <li>Optimize the current node with all the rules.
27+
* <li>Optimize the all the child nodes with all the rules.
28+
* <li>In case the child node could change, Optimize the current node again.
2829
* </ol>
2930
*/
3031
public class LogicalPlanOptimizer {

core/src/main/java/org/opensearch/sql/planner/physical/NestedOperator.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,22 @@ public void generateNonNestedFieldsMap(ExprValue inputMap) {
135135
}
136136

137137
/**
138-
* Simplifies the structure of row's source Map by flattening it, making the full path of an
139-
* object the key and the Object it refers to the value.
140138
*
141-
* <p>Sample input: keys = ['comments.likes'] row = comments: { likes: 2 }
142139
*
143-
* <p>Return: flattenedRow = {comment.likes: 2}
140+
* <pre>
141+
* Simplifies the structure of row's source Map by flattening it,
142+
* making the full path of an object the key
143+
* and the Object it refers to the value.
144+
*
145+
* <p>Sample input:
146+
* keys = ['comments.likes']
147+
* row = comments: {
148+
* likes: 2
149+
* }
150+
*
151+
* <p>Return:
152+
* flattenedRow = {comment.likes: 2}
153+
* </pre>
144154
*
145155
* @param nestedField : Field to query in row.
146156
* @param row : Row returned from OS.

0 commit comments

Comments
 (0)