You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2024/06/28 04:30:56 UTC
(shardingsphere) branch master updated: Add @HighFrequencyInvocation on MaskTable.findAlgorithm (#31910)
This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 03e51ab5e48 Add @HighFrequencyInvocation on MaskTable.findAlgorithm (#31910)
03e51ab5e48 is described below
commit 03e51ab5e487c4d4a943ea630e60603e55a42597
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Jun 28 12:30:50 2024 +0800
Add @HighFrequencyInvocation on MaskTable.findAlgorithm (#31910)
---
.../src/main/java/org/apache/shardingsphere/mask/rule/MaskTable.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/features/mask/core/src/main/java/org/apache/shardingsphere/mask/rule/MaskTable.java b/features/mask/core/src/main/java/org/apache/shardingsphere/mask/rule/MaskTable.java
index 975cb41f906..da33a5508ca 100644
--- a/features/mask/core/src/main/java/org/apache/shardingsphere/mask/rule/MaskTable.java
+++ b/features/mask/core/src/main/java/org/apache/shardingsphere/mask/rule/MaskTable.java
@@ -18,6 +18,7 @@
package org.apache.shardingsphere.mask.rule;
import com.cedarsoftware.util.CaseInsensitiveMap;
+import org.apache.shardingsphere.infra.annotation.HighFrequencyInvocation;
import org.apache.shardingsphere.mask.config.rule.MaskColumnRuleConfiguration;
import org.apache.shardingsphere.mask.config.rule.MaskTableRuleConfiguration;
import org.apache.shardingsphere.mask.spi.MaskAlgorithm;
@@ -44,6 +45,7 @@ public final class MaskTable {
* @param columnName column name
* @return found mask algorithm
*/
+ @HighFrequencyInvocation
@SuppressWarnings("rawtypes")
public Optional<MaskAlgorithm> findAlgorithm(final String columnName) {
return columns.containsKey(columnName) ? Optional.of(columns.get(columnName).getMaskAlgorithm()) : Optional.empty();