LogicalML.java

1
package org.opensearch.sql.planner.logical;
2
3
import java.util.Collections;
4
import java.util.Map;
5
import lombok.EqualsAndHashCode;
6
import lombok.Getter;
7
import lombok.ToString;
8
import org.opensearch.sql.ast.expression.Literal;
9
10
/**
11
 * ML logical plan.
12
 */
13
@Getter
14
@ToString
15
@EqualsAndHashCode(callSuper = true)
16
public class LogicalML extends LogicalPlan {
17
  private final  Map<String, Literal> arguments;
18
19
  /**
20
   * Constructor of LogicalML.
21
   * @param child child logical plan
22
   * @param arguments arguments of the algorithm
23
   */
24
  public LogicalML(LogicalPlan child, Map<String, Literal> arguments) {
25
    super(Collections.singletonList(child));
26
    this.arguments = arguments;
27
  }
28
29
  @Override
30
  public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) {
31 1 1. accept : replaced return value with null for org/opensearch/sql/planner/logical/LogicalML::accept → SURVIVED
    return visitor.visitML(this, context);
32
  }
33
}

Mutations

31

1.1
Location : accept
Killed by : none
replaced return value with null for org/opensearch/sql/planner/logical/LogicalML::accept → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.9.0