public final class SelectStatementContext extends CommonSQLStatementContext<org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement> implements TableAvailable, WhereAvailable, SchemaAvailable
| 构造器和说明 |
|---|
SelectStatementContext(Map<String,ShardingSphereMetaData> metaDataMap,
List<Object> parameters,
org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement sqlStatement,
String defaultSchemaName) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> |
getAllTables()
Get all table segments.
|
Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> |
getWhere()
Get where segment.
|
boolean |
isContainsHaving()
Judge whether contains having or not.
|
boolean |
isContainsJoinQuery()
Judge whether contains join query or not.
|
boolean |
isContainsPartialDistinctAggregation()
Judge whether contains partial distinct aggregation.
|
boolean |
isContainsSubquery()
Judge whether contains subquery or not.
|
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, waitgetTablesContextgetSchemaNamegetSqlStatement, getTablesContextpublic boolean isContainsJoinQuery()
public boolean isContainsSubquery()
public boolean isContainsHaving()
public boolean isContainsPartialDistinctAggregation()
public void setIndexes(Map<String,Integer> columnLabelIndexMap)
columnLabelIndexMap - map for column label and indexpublic boolean isSameGroupByAndOrderByItems()
public Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> getAllTables()
TableAvailablegetAllTables 在接口中 TableAvailablepublic Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> getWhere()
WhereAvailablegetWhere 在接口中 WhereAvailableCopyright © 2021 The Apache Software Foundation. All rights reserved.