PhysicalPlanNodeVisitor.java

1
/*
2
 * Copyright OpenSearch Contributors
3
 * SPDX-License-Identifier: Apache-2.0
4
 */
5
6
7
package org.opensearch.sql.planner.physical;
8
9
import org.opensearch.sql.storage.TableScanOperator;
10
11
/**
12
 * The visitor of {@link PhysicalPlan}.
13
 *
14
 * @param <R> return object type.
15
 * @param <C> context type.
16
 */
17
public abstract class PhysicalPlanNodeVisitor<R, C> {
18
19
  protected R visitNode(PhysicalPlan node, C context) {
20
    return null;
21
  }
22
23
  public R visitFilter(FilterOperator node, C context) {
24 1 1. visitFilter : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitFilter → SURVIVED
    return visitNode(node, context);
25
  }
26
27
  public R visitAggregation(AggregationOperator node, C context) {
28 1 1. visitAggregation : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitAggregation → SURVIVED
    return visitNode(node, context);
29
  }
30
31
  public R visitRename(RenameOperator node, C context) {
32 1 1. visitRename : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRename → SURVIVED
    return visitNode(node, context);
33
  }
34
35
  public R visitTableScan(TableScanOperator node, C context) {
36 1 1. visitTableScan : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitTableScan → KILLED
    return visitNode(node, context);
37
  }
38
39
  public R visitProject(ProjectOperator node, C context) {
40 1 1. visitProject : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitProject → SURVIVED
    return visitNode(node, context);
41
  }
42
43
  public R visitWindow(WindowOperator node, C context) {
44 1 1. visitWindow : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitWindow → SURVIVED
    return visitNode(node, context);
45
  }
46
47
  public R visitRemove(RemoveOperator node, C context) {
48 1 1. visitRemove : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRemove → SURVIVED
    return visitNode(node, context);
49
  }
50
51
  public R visitEval(EvalOperator node, C context) {
52 1 1. visitEval : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitEval → SURVIVED
    return visitNode(node, context);
53
  }
54
55
  public R visitDedupe(DedupeOperator node, C context) {
56 1 1. visitDedupe : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitDedupe → SURVIVED
    return visitNode(node, context);
57
  }
58
59
  public R visitValues(ValuesOperator node, C context) {
60 1 1. visitValues : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitValues → SURVIVED
    return visitNode(node, context);
61
  }
62
63
  public R visitSort(SortOperator node, C context) {
64 1 1. visitSort : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitSort → SURVIVED
    return visitNode(node, context);
65
  }
66
  
67
  public R visitRareTopN(RareTopNOperator node, C context) {
68 1 1. visitRareTopN : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRareTopN → SURVIVED
    return visitNode(node, context);
69
  }
70
71
  public R visitLimit(LimitOperator node, C context) {
72 1 1. visitLimit : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitLimit → SURVIVED
    return visitNode(node, context);
73
  }
74
75
  public R visitMLCommons(PhysicalPlan node, C context) {
76 1 1. visitMLCommons : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitMLCommons → SURVIVED
    return visitNode(node, context);
77
  }
78
79
  public R visitAD(PhysicalPlan node, C context) {
80 1 1. visitAD : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitAD → SURVIVED
    return visitNode(node, context);
81
  }
82
83
  public R visitML(PhysicalPlan node, C context) {
84 1 1. visitML : replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitML → SURVIVED
    return visitNode(node, context);
85
  }
86
}

Mutations

24

1.1
Location : visitFilter
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitFilter → SURVIVED

28

1.1
Location : visitAggregation
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitAggregation → SURVIVED

32

1.1
Location : visitRename
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRename → SURVIVED

36

1.1
Location : visitTableScan
Killed by : org.opensearch.sql.storage.TableScanOperatorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.storage.TableScanOperatorTest]/[method:accept()]
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitTableScan → KILLED

40

1.1
Location : visitProject
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitProject → SURVIVED

44

1.1
Location : visitWindow
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitWindow → SURVIVED

48

1.1
Location : visitRemove
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRemove → SURVIVED

52

1.1
Location : visitEval
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitEval → SURVIVED

56

1.1
Location : visitDedupe
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitDedupe → SURVIVED

60

1.1
Location : visitValues
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitValues → SURVIVED

64

1.1
Location : visitSort
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitSort → SURVIVED

68

1.1
Location : visitRareTopN
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitRareTopN → SURVIVED

72

1.1
Location : visitLimit
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitLimit → SURVIVED

76

1.1
Location : visitMLCommons
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitMLCommons → SURVIVED

80

1.1
Location : visitAD
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitAD → SURVIVED

84

1.1
Location : visitML
Killed by : none
replaced return value with null for org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor::visitML → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.9.0