LogicalRelation.java

1
/*
2
 * Copyright OpenSearch Contributors
3
 * SPDX-License-Identifier: Apache-2.0
4
 */
5
6
7
package org.opensearch.sql.planner.logical;
8
9
import com.google.common.collect.ImmutableList;
10
import lombok.EqualsAndHashCode;
11
import lombok.Getter;
12
import lombok.ToString;
13
import org.opensearch.sql.storage.Table;
14
15
/**
16
 * Logical Relation represent the data source.
17
 */
18
@ToString
19
@EqualsAndHashCode(callSuper = true)
20
public class LogicalRelation extends LogicalPlan {
21
22
  @Getter
23
  private final String relationName;
24
25
  @Getter
26
  private final Table table;
27
28
  /**
29
   * Constructor of LogicalRelation.
30
   */
31
  public LogicalRelation(String relationName, Table table) {
32
    super(ImmutableList.of());
33
    this.relationName = relationName;
34
    this.table = table;
35
  }
36
37
  @Override
38
  public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) {
39 1 1. accept : replaced return value with null for org/opensearch/sql/planner/logical/LogicalRelation::accept → KILLED
    return visitor.visitRelation(this, context);
40
  }
41
}

Mutations

39

1.1
Location : accept
Killed by : org.opensearch.sql.planner.physical.catalog.CatalogTableTest.[engine:junit-jupiter]/[class:org.opensearch.sql.planner.physical.catalog.CatalogTableTest]/[method:testImplement()]
replaced return value with null for org/opensearch/sql/planner/logical/LogicalRelation::accept → KILLED

Active mutators

Tests examined


Report generated by PIT 1.9.0