public final class ShardingSphereSchema extends Object
| 构造器和说明 |
|---|
ShardingSphereSchema() |
ShardingSphereSchema(Map<String,ShardingSphereTable> tables) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsColumn(String tableName,
String columnName)
Judge whether contains column name.
|
boolean |
containsIndex(String tableName,
String indexName)
Judge whether contains index name.
|
boolean |
containsTable(String tableName)
Judge contains table from table meta data or not.
|
ShardingSphereTable |
get(String tableName)
Get table meta data via table name.
|
List<String> |
getAllColumnNames(String tableName)
Get all column names via table.
|
Collection<String> |
getAllTableNames()
Get all table names.
|
List<String> |
getVisibleColumnNames(String tableName)
Get visible column names via table.
|
void |
put(String tableName,
ShardingSphereTable table)
Add table.
|
void |
putAll(Map<String,ShardingSphereTable> tables)
Add tables.
|
void |
remove(String tableName)
Remove table meta data.
|
public ShardingSphereSchema()
public ShardingSphereSchema(Map<String,ShardingSphereTable> tables)
public Collection<String> getAllTableNames()
public ShardingSphereTable get(String tableName)
tableName - tableName table namepublic void put(String tableName, ShardingSphereTable table)
tableName - table nametable - tablepublic void putAll(Map<String,ShardingSphereTable> tables)
tables - tablespublic void remove(String tableName)
tableName - table namepublic boolean containsTable(String tableName)
tableName - table namepublic boolean containsColumn(String tableName, String columnName)
tableName - table namecolumnName - column namepublic boolean containsIndex(String tableName, String indexName)
tableName - table nameindexName - index namepublic List<String> getAllColumnNames(String tableName)
tableName - table nameCopyright © 2022 The Apache Software Foundation. All rights reserved.