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 java.util.Collections; | |
10 | import java.util.Set; | |
11 | import lombok.EqualsAndHashCode; | |
12 | import lombok.Getter; | |
13 | import lombok.ToString; | |
14 | import org.opensearch.sql.expression.ReferenceExpression; | |
15 | ||
16 | /** | |
17 | * Remove field specified by the {@link LogicalRemove#removeList}. | |
18 | */ | |
19 | @ToString | |
20 | @EqualsAndHashCode(callSuper = true) | |
21 | public class LogicalRemove extends LogicalPlan { | |
22 | ||
23 | @Getter | |
24 | private final Set<ReferenceExpression> removeList; | |
25 | ||
26 | /** | |
27 | * Constructor of LogicalRemove. | |
28 | */ | |
29 | public LogicalRemove( | |
30 | LogicalPlan child, | |
31 | Set<ReferenceExpression> removeList) { | |
32 | super(Collections.singletonList(child)); | |
33 | this.removeList = removeList; | |
34 | } | |
35 | ||
36 | @Override | |
37 | public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) { | |
38 |
1
1. accept : replaced return value with null for org/opensearch/sql/planner/logical/LogicalRemove::accept → KILLED |
return visitor.visitRemove(this, context); |
39 | } | |
40 | } | |
Mutations | ||
38 |
1.1 |