1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal;
19
20 import lombok.Setter;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment;
22 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment;
23 import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.ExplainStatement;
24 import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.MySQLStatement;
25
26 import java.util.Optional;
27
28
29
30
31 @Setter
32 public final class MySQLExplainStatement extends ExplainStatement implements MySQLStatement {
33
34 private SimpleTableSegment table;
35
36 private ColumnSegment columnWild;
37
38
39
40
41
42
43 public Optional<SimpleTableSegment> getTable() {
44 return Optional.ofNullable(table);
45 }
46
47
48
49
50
51
52 public Optional<ColumnSegment> getColumnWild() {
53 return Optional.ofNullable(columnWild);
54 }
55 }