EncryptRule implements ShardingSphereRule { public Collection<String> getAssistedQueryColumns(final String logicTable) { return tables.containsKey(logicTable) ? tables.get(logicTable).getAssistedQueryColumns() : Collections.emptyList(); } EncryptRule(final EncryptRuleConfiguration config);  EncryptRule(final AlgorithmProvidedEncryptRuleConfiguration config); Collection<String> getEncryptTableNames(); Optional<EncryptTable> findEncryptTable(final String logicTable); Optional<EncryptAlgorithm> findEncryptor(final String logicTable, final String logicColumn); List<Object> getEncryptValues(final String logicTable, final String logicColumn, final List<Object> originalValues); boolean isCipherColumn(final String tableName, final String columnName); String getCipherColumn(final String logicTable, final String logicColumn); String getLogicColumnOfCipher(final String logicTable, final String cipherColumn); Map<String, String> getLogicAndCipherColumns(final String logicTable); Optional<String> findAssistedQueryColumn(final String logicTable, final String logicColumn); Collection<String> getAssistedQueryColumns(final String logicTable); List<Object> getEncryptAssistedQueryValues(final String logicTable, final String logicColumn, final List<Object> originalValues); Collection<String> getAssistedQueryAndPlainColumns(final String logicTable); Optional<String> findPlainColumn(final String logicTable, final String logicColumn);  }
@Test public void assertGetAssistedQueryColumns() { assertTrue(new EncryptRule(createEncryptRuleConfiguration()).getAssistedQueryColumns("t_encrypt").isEmpty()); }