SHOW PLUGINS OF SPI
Description
The SHOW PLUGINS OF interfaceClass
syntax is used to query all the implementations of an interface.
Syntax
Grammar Railroad diagram
showPluginImplementations ::=
'SHOW' 'PLUGINS' 'OF' interfaceClass
interfaceClass ::=
string
Return Value Description
Columns | Description |
---|---|
type | type |
type_aliases | type aliases |
description | description |
Example
- Query all the implementations for
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
interface
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)
Supplement
For some commonly used interface implementations, ShardingSphere provides syntax sugar functions to simplify operations.
The currently provided syntax sugar are as follows:
- Show implementations of
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
: SHOW SHARDING ALGORITHM PLUGINS - Show implementations of
org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
: SHOW LOAD BALANCE ALGORITHM PLUGINS - Show implementations of
org.apache.shardingsphere.encrypt.spi.EncryptAlgorithm
: SHOW ENCRYPT ALGORITHM PLUGINS - Show implementations of
org.apache.shardingsphere.mask.spi.MaskAlgorithm
: SHOW MASK ALGORITHM PLUGINS - Show implementations of
org.apache.shardingsphere.shadow.spi.ShadowAlgorithm
: SHOW SHADOW ALGORITHM PLUGINS - Show implementations of
org.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm
: SHOW KEY GENERATE ALGORITHM PLUGINS
Reserved word
SHOW
, PLUGINS
, OF
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .