public final class SelectStatementContext extends CommonSQLStatementContext<org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement> implements TableAvailable, WhereAvailable
| 构造器和说明 |
|---|
SelectStatementContext(SchemaMetaData schemaMetaData,
String sql,
List<Object> parameters,
org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement sqlStatement) |
SelectStatementContext(org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement sqlStatement,
GroupByContext groupByContext,
OrderByContext orderByContext,
ProjectionsContext projectionsContext,
PaginationContext paginationContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<org.apache.shardingsphere.sql.parser.sql.segment.generic.table.SimpleTableSegment> |
getAllTables()
Get all table segments.
|
Optional<org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.WhereSegment> |
getWhere()
Get where segment.
|
boolean |
isSameGroupByAndOrderByItems()
Judge group by and order by sequence is same or not.
|
void |
setIndexes(Map<String,Integer> columnLabelIndexMap)
Set indexes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTablesContextgetSqlStatement, getTablesContextpublic SelectStatementContext(org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement sqlStatement, GroupByContext groupByContext, OrderByContext orderByContext, ProjectionsContext projectionsContext, PaginationContext paginationContext)
public SelectStatementContext(SchemaMetaData schemaMetaData, String sql, List<Object> parameters, org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement sqlStatement)
public void setIndexes(Map<String,Integer> columnLabelIndexMap)
columnLabelIndexMap - map for column label and indexpublic boolean isSameGroupByAndOrderByItems()
public Collection<org.apache.shardingsphere.sql.parser.sql.segment.generic.table.SimpleTableSegment> getAllTables()
TableAvailablegetAllTables 在接口中 TableAvailablepublic Optional<org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.WhereSegment> getWhere()
WhereAvailablegetWhere 在接口中 WhereAvailableCopyright © 2020 The Apache Software Foundation. All rights reserved.