public final class RoutingResult extends Object
| Constructor and Description |
|---|
RoutingResult() |
| Modifier and Type | Method and Description |
|---|---|
List<Set<String>> |
getActualTableNameGroups(String dataSourceName,
Set<String> logicTableNames)
Get actual tables group via data source name and logic tables' names.
|
Map<String,Set<String>> |
getDataSourceLogicTablesMap(Collection<String> dataSourceNames)
Get map relationship between data source and logic tables via data sources' names.
|
Collection<String> |
getDataSourceNames()
Get all data source names.
|
com.google.common.base.Optional<TableUnit> |
getTableUnit(String dataSourceName,
String actualTableName)
Get routing table unit via data source name and actual table name.
|
boolean |
isSingleRouting()
Judge is route for single database and table only or not.
|
public boolean isSingleRouting()
public Collection<String> getDataSourceNames()
public com.google.common.base.Optional<TableUnit> getTableUnit(String dataSourceName, String actualTableName)
dataSourceName - data source nameactualTableName - actual table namepublic List<Set<String>> getActualTableNameGroups(String dataSourceName, Set<String> logicTableNames)
Actual tables in same group are belong one logic name.
dataSourceName - data source namelogicTableNames - logic tables' namespublic Map<String,Set<String>> getDataSourceLogicTablesMap(Collection<String> dataSourceNames)
dataSourceNames - data sources' namesCopyright © 2020 The Apache Software Foundation. All rights reserved.