1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.single.distsql.statement.rql;
19
20 import org.apache.shardingsphere.distsql.statement.rql.resource.ShowTablesStatement;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.DatabaseSegment;
22
23 import java.util.Optional;
24
25
26
27
28 public final class ShowUnloadedSingleTableStatement extends ShowTablesStatement {
29
30 private final String storageUnitName;
31
32 private final String schemaName;
33
34 public ShowUnloadedSingleTableStatement(final String storageUnitName, final String schemaName, final DatabaseSegment database) {
35
36 super(null, database);
37 this.storageUnitName = storageUnitName;
38 this.schemaName = schemaName;
39 }
40
41
42
43
44
45
46 public Optional<String> getStorageUnitName() {
47 return Optional.ofNullable(storageUnitName);
48 }
49
50
51
52
53
54
55 public Optional<String> getSchemaName() {
56 return Optional.ofNullable(schemaName);
57 }
58 }