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.ddl;
19
20 import lombok.Setter;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.table.AlgorithmTypeSegment;
22 import org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.table.LockTableSegment;
23 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment;
24 import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropIndexStatement;
25 import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.MySQLStatement;
26
27 import java.util.Optional;
28
29
30
31
32 @Setter
33 public final class MySQLDropIndexStatement extends DropIndexStatement implements MySQLStatement {
34
35 private SimpleTableSegment table;
36
37 private AlgorithmTypeSegment algorithmSegment;
38
39 private LockTableSegment lockTableSegment;
40
41
42
43
44
45
46 public Optional<SimpleTableSegment> getTable() {
47 return Optional.ofNullable(table);
48 }
49
50
51
52
53
54
55 public Optional<AlgorithmTypeSegment> getGetAlgorithmSegment() {
56 return Optional.ofNullable(algorithmSegment);
57 }
58
59
60
61
62
63
64 public Optional<LockTableSegment> getLockTableSegment() {
65 return Optional.ofNullable(lockTableSegment);
66 }
67 }