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.statement.ddl.CreateIndexStatement;
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 MySQLCreateIndexStatement extends CreateIndexStatement implements MySQLStatement {
33
34 private AlgorithmTypeSegment algorithmSegment;
35
36 private LockTableSegment lockTableSegment;
37
38
39
40
41
42
43 public Optional<AlgorithmTypeSegment> getGetAlgorithmSegment() {
44 return Optional.ofNullable(algorithmSegment);
45 }
46
47
48
49
50
51
52 public Optional<LockTableSegment> getLockTableSegment() {
53 return Optional.ofNullable(lockTableSegment);
54 }
55 }