shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java
/**
     * Find encryptor.
     *
     * @param schemaName schema name
     * @param logicTable logic table name
     * @param logicColumn logic column name
     * @return encryptor
     */
Find encryptor.
@param schemaName schema name
@param logicTable logic table name
@param logicColumn logic column name
@return encryptor
Find encryptor . @param schemaName schema name @param logicTable logic table name @param logicColumn logic column name @return encryptor
public Optional<EncryptAlgorithm> findEncryptor(final String schemaName, final String logicTable, final String logicColumn) {
        if (!tables.containsKey(logicTable)) {
            return Optional.empty();
        }
        Optional<EncryptAlgorithm> encryptAlgorithm = tables.get(logicTable).findEncryptorName(logicColumn).map(encryptors::get);
        encryptAlgorithm.ifPresent(optional -> mergeProps(optional, EncryptPropertiesBuilder.getProperties(schemaName, "", logicTable, logicColumn)));
        return encryptAlgorithm;
    }
public Optional < EncryptAlgorithm > findEncryptor ( final String schemaName , final String logicTable , final String logicColumn ) { if ( ! tables . containsKey ( logicTable ) ) { return Optional . empty ( ) ; } Optional < EncryptAlgorithm > encryptAlgorithm = tables . get ( logicTable ) . findEncryptorName ( logicColumn ) . map ( encryptors :: get ) ; encryptAlgorithm . ifPresent ( optional -> mergeProps ( optional , EncryptPropertiesBuilder . getProperties ( schemaName , "" , logicTable , logicColumn ) ) ) ; return encryptAlgorithm ; }
Find encryptor.
Find encryptor .