File tree Expand file tree Collapse file tree 4 files changed +31
-18
lines changed
core/src/main/java/org/opensearch/sql/planner Expand file tree Collapse file tree 4 files changed +31
-18
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ repositories {
84
84
spotless {
85
85
java {
86
86
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'
90
90
exclude ' **/build/**' , ' **/build-*/**'
91
91
}
92
92
// importOrder()
Original file line number Diff line number Diff line change 16
16
* Logical operator which is a sequence of literal rows (like a relation).<br>
17
17
* Basically, Values operator is used to create rows of constant literals<br>
18
18
* "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
+ *
21
22
* <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.
24
25
* </ol>
25
- * Take the
26
- * following logical plan for example:
27
26
*
28
- * LogicalProject(expr=[log(2),true,1+2])<br>
29
- *   |_ 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
+ *   |_ LogicalValues([[]]) #an empty row so that Project can evaluate its expressions in
31
+ * next()
30
32
*/
31
33
@ ToString
32
34
@ Getter
Original file line number Diff line number Diff line change 21
21
/**
22
22
* {@link LogicalPlan} Optimizer.<br>
23
23
* The Optimizer will run in the TopDown manner.<br>
24
+ *
24
25
* <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.
28
29
* </ol>
29
30
*/
30
31
public class LogicalPlanOptimizer {
Original file line number Diff line number Diff line change @@ -135,12 +135,22 @@ public void generateNonNestedFieldsMap(ExprValue inputMap) {
135
135
}
136
136
137
137
/**
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.
140
138
*
141
- * <p>Sample input: keys = ['comments.likes'] row = comments: { likes: 2 }
142
139
*
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>
144
154
*
145
155
* @param nestedField : Field to query in row.
146
156
* @param row : Row returned from OS.
You can’t perform that action at this time.
0 commit comments