1 | /* | |
2 | * Copyright OpenSearch Contributors | |
3 | * SPDX-License-Identifier: Apache-2.0 | |
4 | */ | |
5 | ||
6 | ||
7 | package org.opensearch.sql.storage; | |
8 | ||
9 | import java.util.Collections; | |
10 | import java.util.List; | |
11 | import org.opensearch.sql.planner.physical.PhysicalPlan; | |
12 | import org.opensearch.sql.planner.physical.PhysicalPlanNodeVisitor; | |
13 | ||
14 | /** | |
15 | * Abstract table scan class for different storage to implement. | |
16 | * This is also to avoid "polluting" physical plan visitor by concrete table scan implementation. | |
17 | */ | |
18 | public abstract class TableScanOperator extends PhysicalPlan { | |
19 | ||
20 | @Override | |
21 | public <R, C> R accept(PhysicalPlanNodeVisitor<R, C> visitor, C context) { | |
22 |
1
1. accept : replaced return value with null for org/opensearch/sql/storage/TableScanOperator::accept → KILLED |
return visitor.visitTableScan(this, context); |
23 | } | |
24 | ||
25 | @Override | |
26 | public List<PhysicalPlan> getChild() { | |
27 | return Collections.emptyList(); | |
28 | } | |
29 | ||
30 | /** | |
31 | * Explain the execution plan. | |
32 | * | |
33 | * @return execution plan. | |
34 | */ | |
35 | public abstract String explain(); | |
36 | } | |
Mutations | ||
22 |
1.1 |