1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.planner.logical; | |
8 | ||
9 | /** | |
10 | * The visitor of {@link LogicalPlan}. | |
11 | * | |
12 | * @param <R> return object type. | |
13 | * @param <C> context type. | |
14 | */ | |
15 | public abstract class LogicalPlanNodeVisitor<R, C> { | |
16 | ||
17 | public R visitNode(LogicalPlan plan, C context) { | |
18 | return null; | |
19 | } | |
20 | ||
21 | public R visitRelation(LogicalRelation plan, C context) { | |
22 |
1
1. visitRelation : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitRelation → SURVIVED |
return visitNode(plan, context); |
23 | } | |
24 | ||
25 | public R visitFilter(LogicalFilter plan, C context) { | |
26 |
1
1. visitFilter : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitFilter → KILLED |
return visitNode(plan, context); |
27 | } | |
28 | ||
29 | public R visitHighlight(LogicalHighlight plan, C context) { | |
30 |
1
1. visitHighlight : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitHighlight → SURVIVED |
return visitNode(plan, context); |
31 | } | |
32 | ||
33 | public R visitAggregation(LogicalAggregation plan, C context) { | |
34 |
1
1. visitAggregation : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitAggregation → KILLED |
return visitNode(plan, context); |
35 | } | |
36 | ||
37 | public R visitDedupe(LogicalDedupe plan, C context) { | |
38 |
1
1. visitDedupe : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitDedupe → SURVIVED |
return visitNode(plan, context); |
39 | } | |
40 | ||
41 | public R visitRename(LogicalRename plan, C context) { | |
42 |
1
1. visitRename : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitRename → KILLED |
return visitNode(plan, context); |
43 | } | |
44 | ||
45 | public R visitProject(LogicalProject plan, C context) { | |
46 |
1
1. visitProject : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitProject → SURVIVED |
return visitNode(plan, context); |
47 | } | |
48 | ||
49 | public R visitWindow(LogicalWindow plan, C context) { | |
50 |
1
1. visitWindow : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitWindow → SURVIVED |
return visitNode(plan, context); |
51 | } | |
52 | ||
53 | public R visitRemove(LogicalRemove plan, C context) { | |
54 |
1
1. visitRemove : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitRemove → SURVIVED |
return visitNode(plan, context); |
55 | } | |
56 | ||
57 | public R visitEval(LogicalEval plan, C context) { | |
58 |
1
1. visitEval : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitEval → SURVIVED |
return visitNode(plan, context); |
59 | } | |
60 | ||
61 | public R visitSort(LogicalSort plan, C context) { | |
62 |
1
1. visitSort : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitSort → SURVIVED |
return visitNode(plan, context); |
63 | } | |
64 | ||
65 | public R visitValues(LogicalValues plan, C context) { | |
66 |
1
1. visitValues : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitValues → SURVIVED |
return visitNode(plan, context); |
67 | } | |
68 | ||
69 | public R visitRareTopN(LogicalRareTopN plan, C context) { | |
70 |
1
1. visitRareTopN : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitRareTopN → SURVIVED |
return visitNode(plan, context); |
71 | } | |
72 | ||
73 | public R visitLimit(LogicalLimit plan, C context) { | |
74 |
1
1. visitLimit : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitLimit → SURVIVED |
return visitNode(plan, context); |
75 | } | |
76 | ||
77 | public R visitMLCommons(LogicalMLCommons plan, C context) { | |
78 |
1
1. visitMLCommons : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitMLCommons → SURVIVED |
return visitNode(plan, context); |
79 | } | |
80 | ||
81 | public R visitML(LogicalML plan, C context) { | |
82 |
1
1. visitML : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitML → SURVIVED |
return visitNode(plan, context); |
83 | } | |
84 | ||
85 | public R visitAD(LogicalAD plan, C context) { | |
86 |
1
1. visitAD : replaced return value with null for org/opensearch/sql/planner/logical/LogicalPlanNodeVisitor::visitAD → SURVIVED |
return visitNode(plan, context); |
87 | } | |
88 | } | |
Mutations | ||
22 |
1.1 |
|
26 |
1.1 |
|
30 |
1.1 |
|
34 |
1.1 |
|
38 |
1.1 |
|
42 |
1.1 |
|
46 |
1.1 |
|
50 |
1.1 |
|
54 |
1.1 |
|
58 |
1.1 |
|
62 |
1.1 |
|
66 |
1.1 |
|
70 |
1.1 |
|
74 |
1.1 |
|
78 |
1.1 |
|
82 |
1.1 |
|
86 |
1.1 |