shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/builder/TableMetaDataBuilder.java
/**
     * Decorate kernel table meta data.
     *
     * @param tableMetaData table meta data
     * @param rules shardingSphere rules
     * @return table meta data
     */
Decorate kernel table meta data.
@param tableMetaData table meta data
@param rules shardingSphere rules
@return table meta data
Decorate kernel table meta data . @param tableMetaData table meta data @param rules shardingSphere rules @return table meta data
@SuppressWarnings({"unchecked", "rawtypes"})
    public static TableMetaData decorateKernelTableMetaData(final TableMetaData tableMetaData, final Collection<ShardingSphereRule> rules) {
        TableMetaData result = decorateTableName(tableMetaData, rules);
        for (Entry<ShardingSphereRule, RuleBasedTableMetaDataBuilder> entry : OrderedSPIRegistry.getRegisteredServices(RuleBasedTableMetaDataBuilder.class, rules).entrySet()) {
            if (entry.getKey() instanceof TableContainedRule) {
                result = entry.getValue().decorate(result.getName(), result, (TableContainedRule) entry.getKey());
            }
        }
        return result;
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public static TableMetaData decorateKernelTableMetaData ( final TableMetaData tableMetaData , final Collection < ShardingSphereRule > rules ) { TableMetaData result = decorateTableName ( tableMetaData , rules ) ; for ( Entry < ShardingSphereRule , RuleBasedTableMetaDataBuilder > entry : OrderedSPIRegistry . getRegisteredServices ( RuleBasedTableMetaDataBuilder . class , rules ) . entrySet ( ) ) { if ( entry . getKey ( ) instanceof TableContainedRule ) { result = entry . getValue ( ) . decorate ( result . getName ( ) , result , ( TableContainedRule ) entry . getKey ( ) ) ; } } return result ; }
Decorate kernel table meta data.
Decorate kernel table meta data .