1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.ast.expression; | |
8 | ||
9 | import java.util.Collections; | |
10 | import java.util.List; | |
11 | import lombok.EqualsAndHashCode; | |
12 | import lombok.ToString; | |
13 | import org.opensearch.sql.ast.AbstractNodeVisitor; | |
14 | import org.opensearch.sql.ast.Node; | |
15 | ||
16 | /** | |
17 | * Represent the All fields which is been used in SELECT *. | |
18 | */ | |
19 | @ToString | |
20 | @EqualsAndHashCode(callSuper = false) | |
21 | public class AllFields extends UnresolvedExpression { | |
22 | public static final AllFields INSTANCE = new AllFields(); | |
23 | ||
24 | private AllFields() { | |
25 | } | |
26 | ||
27 | public static AllFields of() { | |
28 |
1
1. of : replaced return value with null for org/opensearch/sql/ast/expression/AllFields::of → KILLED |
return INSTANCE; |
29 | } | |
30 | ||
31 | @Override | |
32 | public List<? extends Node> getChild() { | |
33 | return Collections.emptyList(); | |
34 | } | |
35 | ||
36 | @Override | |
37 | public <R, C> R accept(AbstractNodeVisitor<R, C> nodeVisitor, C context) { | |
38 |
1
1. accept : replaced return value with null for org/opensearch/sql/ast/expression/AllFields::accept → KILLED |
return nodeVisitor.visitAllFields(this, context); |
39 | } | |
40 | } | |
Mutations | ||
28 |
1.1 |
|
38 |
1.1 |