1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | package org.opensearch.sql.planner.logical; | |
7 | ||
8 | import java.util.Collections; | |
9 | import java.util.Map; | |
10 | import lombok.EqualsAndHashCode; | |
11 | import lombok.Getter; | |
12 | import lombok.ToString; | |
13 | import org.opensearch.sql.ast.expression.Literal; | |
14 | import org.opensearch.sql.expression.Expression; | |
15 | ||
16 | @EqualsAndHashCode(callSuper = true) | |
17 | @Getter | |
18 | @ToString | |
19 | public class LogicalHighlight extends LogicalPlan { | |
20 | private final Expression highlightField; | |
21 | private final Map<String, Literal> arguments; | |
22 | ||
23 | /** | |
24 | * Constructor of LogicalHighlight. | |
25 | */ | |
26 | public LogicalHighlight(LogicalPlan childPlan, Expression highlightField, | |
27 | Map<String, Literal> arguments) { | |
28 | super(Collections.singletonList(childPlan)); | |
29 | this.highlightField = highlightField; | |
30 | this.arguments = arguments; | |
31 | } | |
32 | ||
33 | @Override | |
34 | public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) { | |
35 |
1
1. accept : replaced return value with null for org/opensearch/sql/planner/logical/LogicalHighlight::accept → SURVIVED |
return visitor.visitHighlight(this, context); |
36 | } | |
37 | } | |
Mutations | ||
35 |
1.1 |