SHOW PLUGINS
描述
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 PLUGINS - 查询
org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
接口实现:SHOW LOAD BALANCE ALGORITHM PLUGINS - 查询
org.apache.shardingsphere.encrypt.spi.EncryptAlgorithm
接口实现:SHOW ENCRYPT ALGORITHM PLUGINS - 查询
org.apache.shardingsphere.mask.spi.MaskAlgorithm
接口实现:SHOW MASK ALGORITHM PLUGINS - 查询
org.apache.shardingsphere.shadow.spi.ShadowAlgorithm
接口实现:SHOW SHADOW ALGORITHM PLUGINS - 查询
org.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm
接口实现:SHOW KEY GENERATE ALGORITHM PLUGINS
保留字
SHOW
、PLUGINS
、OF
相关链接
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .