Class 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
  • <section role="region">
    • Constructor Detail

      • 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
    </section> <section role="region">
    • Method Detail

      • 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
    </section>