EAGLE-1088: Change the inconsistent method name find master
authoryonzhang <yonzhang@ebay.com>
Mon, 28 May 2018 18:07:35 +0000 (11:07 -0700)
committeryonzhang <yonzhang@ebay.com>
Mon, 28 May 2018 18:07:35 +0000 (11:07 -0700)
make java method more friendly

Author: @BruceKuiLiu
Reviewer: @yonzhang2012 yonzhang2012@gmail.com

Closes: #991

eagle-core/eagle-query/eagle-query-base/src/main/java/org/apache/eagle/query/aggregate/SortFieldOrderType.java
eagle-core/eagle-query/eagle-query-base/src/main/java/org/apache/eagle/query/aggregate/SortFieldOrderTypeMatcher.java

index 30a51d6..c020dfa 100644 (file)
@@ -51,7 +51,7 @@ public enum SortFieldOrderType {
     public static AggregateParams.SortFieldOrder matchAll(String sortFieldOrder) {
         for (SortFieldOrderType type : SortFieldOrderType.values()) {
             SortFieldOrderTypeMatcher m = type.matcher(sortFieldOrder);
-            if (m.find()) {
+            if (m.isMatched()) {
                 return m.sortFieldOrder();
             }
         }