public final class TablesContext extends Object
| Constructor and Description |
|---|
TablesContext(Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tableSegments) |
TablesContext(org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment tableSegment) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
findTableName(ColumnProjection column,
ShardingSphereSchema schema)
Find table name.
|
Optional<String> |
findTableName(org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment column,
ShardingSphereSchema schema)
Find table name.
|
Optional<String> |
findTableNameFromSQL(String tableNameOrAlias)
Find table name from SQL.
|
Collection<String> |
getTableNames()
Get table names.
|
public TablesContext(org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment tableSegment)
public TablesContext(Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tableSegments)
public Collection<String> getTableNames()
public Optional<String> findTableName(org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment column, ShardingSphereSchema schema)
column - column segmentschema - schema meta datapublic Optional<String> findTableName(ColumnProjection column, ShardingSphereSchema schema)
column - column projectionschema - schema meta dataCopyright © 2021 The Apache Software Foundation. All rights reserved.