Class OracleShardingKeyImpl.Decoder

java.lang.Object
oracle.jdbc.pool.OracleShardingKeyImpl.Decoder
Enclosing class:
OracleShardingKeyImpl

public static class OracleShardingKeyImpl.Decoder extends Object
This class is used to decode the sharding keys that are stored in the DB tables using the standard Base 64 notation
  • Constructor Details

    • Decoder

      public Decoder(ShardingMetadata metadata)
      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