public final class SelectStatementContext extends CommonSQLStatementContext<org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement> implements TableAvailable, WhereAvailable, ParameterAware
| 构造器和说明 |
|---|
SelectStatementContext(Map<String,ShardingSphereDatabase> databases,
List<Object> parameters,
org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement sqlStatement,
String defaultDatabaseName) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> |
getAllTables()
Get all table segments.
|
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment> |
getColumnSegments()
Get column segments.
|
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> |
getWhereSegments()
Get where segments.
|
boolean |
isContainsCombine()
Judge whether contains combine or not.
|
boolean |
isContainsDollarParameterMarker()
Judge whether contains dollar parameter marker or not.
|
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.
|
void |
setUpParameters(List<Object> parameters)
Set up parameters.
|
isHintWriteRouteOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTablesContextgetDatabaseType, getSqlStatement, getTablesContextpublic boolean isContainsJoinQuery()
public boolean isContainsSubquery()
public boolean isContainsHaving()
public boolean isContainsCombine()
public boolean isContainsDollarParameterMarker()
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 Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> getWhereSegments()
WhereAvailablegetWhereSegments 在接口中 WhereAvailablepublic Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment> getColumnSegments()
WhereAvailablegetColumnSegments 在接口中 WhereAvailablepublic void setUpParameters(List<Object> parameters)
ParameterAwaresetUpParameters 在接口中 ParameterAwareparameters - parametersCopyright © 2022 The Apache Software Foundation. All rights reserved.