public abstract class ShardingDDLStatementValidator<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DDLStatement> extends Object implements ShardingStatementValidator<T>
| 构造器和说明 |
|---|
ShardingDDLStatementValidator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
isRouteUnitDataNodeDifferentSize(ShardingRule shardingRule,
RouteContext routeContext,
String tableName)
Judge whether route unit and data node are different size.
|
protected boolean |
isSchemaContainsIndex(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.index.IndexSegment index)
Judge whether schema contains index or not.
|
protected void |
validateShardingTable(ShardingRule shardingRule,
String operation,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
Validate sharding table.
|
protected void |
validateTableExist(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
Validate table exist.
|
protected void |
validateTableNotExist(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
Validate table not exist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostValidate, preValidateprotected void validateShardingTable(ShardingRule shardingRule, String operation, Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
shardingRule - sharding ruleoperation - operationtables - tablesprotected void validateTableExist(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
schema - ShardingSphere schematables - tablesprotected void validateTableNotExist(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment> tables)
schema - ShardingSphere schematables - tablesprotected boolean isRouteUnitDataNodeDifferentSize(ShardingRule shardingRule, RouteContext routeContext, String tableName)
shardingRule - sharding rulerouteContext - route contexttableName - table nameprotected boolean isSchemaContainsIndex(org.apache.shardingsphere.infra.metadata.database.schema.decorator.model.ShardingSphereSchema schema,
org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.index.IndexSegment index)
schema - ShardingSphere schemaindex - indexCopyright © 2022 The Apache Software Foundation. All rights reserved.