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.common.segment.ddl.table;
19
20 import lombok.Getter;
21 import lombok.RequiredArgsConstructor;
22 import lombok.Setter;
23 import org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.CreateDefinitionSegment;
24 import org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.engine.EngineSegment;
25 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.CommentSegment;
26
27 import java.util.Optional;
28
29
30
31
32 @Getter
33 @Setter
34 @RequiredArgsConstructor
35 public final class CreateTableOptionSegment implements CreateDefinitionSegment {
36
37 private final int startIndex;
38
39 private final int stopIndex;
40
41 private EngineSegment engine;
42
43 private CommentSegment commentSegment;
44
45
46
47
48
49
50 public Optional<EngineSegment> getEngine() {
51 return Optional.ofNullable(engine);
52 }
53
54
55
56
57
58
59 public Optional<CommentSegment> getComment() {
60 return Optional.ofNullable(commentSegment);
61 }
62 }