SHOW PLUGINS OF interfaceClass
语法用于查询指定接口的全部实现。
showPluginImplementations ::=
'SHOW' 'PLUGINS' 'OF' interfaceClass
interfaceClass ::=
string
列 | 说明 |
---|---|
type | 类型 |
type_aliases | 类型别名 |
description | 描述 |
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
接口的所有实现类SHOW PLUGINS OF 'org.apache.shardingsphere.sharding.spi.ShardingAlgorithm'
SHOW PLUGINS OF 'org.apache.shardingsphere.sharding.spi.ShardingAlgorithm';
+----------------+--------------+-------------+
| type | type_aliases | description |
+----------------+--------------+-------------+
| MOD | | |
| HASH_MOD | | |
| VOLUME_RANGE | | |
| BOUNDARY_RANGE | | |
| AUTO_INTERVAL | | |
| INTERVAL | | |
| CLASS_BASED | | |
| INLINE | | |
| COMPLEX_INLINE | | |
| HINT_INLINE | | |
+----------------+--------------+-------------+
10 rows in set (0.52 sec)
针对一些常用的接口,ShardingSphere 提供了语法糖,可以简化操作,目前已提供的插件查询语法糖如下:
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
接口实现:SHOW SHARDING ALGORITHM PLUGINSorg.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
接口实现:SHOW LOAD BALANCE ALGORITHM PLUGINSorg.apache.shardingsphere.encrypt.spi.EncryptAlgorithm
接口实现:SHOW ENCRYPT ALGORITHM PLUGINSorg.apache.shardingsphere.mask.spi.MaskAlgorithm
接口实现:SHOW MASK ALGORITHM PLUGINSorg.apache.shardingsphere.shadow.spi.ShadowAlgorithm
接口实现:SHOW SHADOW ALGORITHM PLUGINSorg.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm
接口实现:SHOW KEY GENERATE ALGORITHM PLUGINSSHOW
、PLUGINS
、OF