public final class SelectStatementContext extends CommonSQLStatementContext<org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement> implements TableAvailable, WhereAvailable
| Constructor and Description |
|---|
SelectStatementContext(org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement sqlStatement,
GroupByContext groupByContext,
OrderByContext orderByContext,
ProjectionsContext projectionsContext,
PaginationContext paginationContext) |
SelectStatementContext(ShardingSphereSchema schema,
List<Object> parameters,
org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement sqlStatement) |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> |
getAllSimpleTableSegments()
Get all tables.
|
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.generic.table.SimpleTableSegment> |
getFromSimpleTableSegments()
Get tables with from clause.
|
Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> |
getWhere()
Get where segment.
|
boolean |
isContainsJoinQuery()
Whether it contain join query.
|
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.common.statement.dml.SelectStatement sqlStatement,
GroupByContext groupByContext,
OrderByContext orderByContext,
ProjectionsContext projectionsContext,
PaginationContext paginationContext)
public SelectStatementContext(ShardingSphereSchema schema, List<Object> parameters, org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement sqlStatement)
public boolean isContainsJoinQuery()
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 in interface TableAvailablepublic Optional<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.WhereSegment> getWhere()
WhereAvailablegetWhere in interface WhereAvailablepublic Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> getAllSimpleTableSegments()
public Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> getFromSimpleTableSegments()
Copyright © 2021 The Apache Software Foundation. All rights reserved.