LogicalMLCommons.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-commons logical plan.
12
 */
13
@Getter
14
@ToString
15
@EqualsAndHashCode(callSuper = true)
16
public class LogicalMLCommons extends LogicalPlan {
17
  private final String algorithm;
18
19
  private final  Map<String, Literal> arguments;
20
21
  /**
22
   * Constructor of LogicalMLCommons.
23
   * @param child child logical plan
24
   * @param algorithm algorithm name
25
   * @param arguments arguments of the algorithm
26
   */
27
  public LogicalMLCommons(LogicalPlan child, String algorithm,
28
                          Map<String, Literal> arguments) {
29
    super(Collections.singletonList(child));
30
    this.algorithm = algorithm;
31
    this.arguments = arguments;
32
  }
33
34
  @Override
35
  public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) {
36 1 1. accept : replaced return value with null for org/opensearch/sql/planner/logical/LogicalMLCommons::accept → SURVIVED
    return visitor.visitMLCommons(this, context);
37
  }
38
}

Mutations

36

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

Active mutators

Tests examined


Report generated by PIT 1.9.0