Package oracle.jdbc.pool
Class OracleShardingKeyImpl.Decoder
java.lang.Object
oracle.jdbc.pool.OracleShardingKeyImpl.Decoder
- Enclosing class:
- OracleShardingKeyImpl
This class is used to decode the sharding keys that are stored in the DB
tables using the standard Base 64 notation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildShardKeys(List<byte[]> subKeysByteArr, boolean isSuperShardingKey, boolean isHighKey) Builds the sharding keys given the decodes byte[] representing the sharding keys
-
Constructor Details
-
Decoder
- Parameters:
metadata- used to decode the B64 formatted sharding keys the constructor will throw an IllegalArgumentException if metadata is null
-
-
Method Details
-
buildShardKeys
public List<OracleShardingKeyImpl> buildShardKeys(List<byte[]> subKeysByteArr, boolean isSuperShardingKey, boolean isHighKey) throws SQLException Builds the sharding keys given the decodes byte[] representing the sharding keys- Parameters:
subKeysByteArr-isSuperShardingKey-- Returns:
- Throws:
SQLException
-