瀏覽代碼

Remove unused constant value (#373)

Signed-off-by: yhmo <yihua.mo@zilliz.com>

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 2 年之前
父節點
當前提交
9a62435bf1

+ 2 - 6
.github/workflows/maven.yml

@@ -5,13 +5,9 @@ name: Java CI with Maven
 
 on:
   push:
-    branches:
-      - base=master
-      - base~=2\.\d
+    branches: [ "2.1" ]
   pull_request:
-    branches:
-      - base=master
-      - base~=2\.\d
+    branches: [ "2.1" ]
 
 jobs:
   build:

+ 1 - 1
examples/main/io/milvus/GeneralExample.java

@@ -333,7 +333,7 @@ public class GeneralExample {
                 .withVectorFieldName(VECTOR_FIELD)
                 .withExpr(expr)
                 .withParams(SEARCH_PARAM)
-                .withGuaranteeTimestamp(Constant.GUARANTEE_EVENTUALLY_TS)
+                .withConsistencyLevel(ConsistencyLevelEnum.EVENTUALLY)
                 .build();
 
         R<SearchResults> response = milvusClient.search(searchParam);

+ 0 - 9
src/main/java/io/milvus/param/Constant.java

@@ -55,13 +55,4 @@ public class Constant {
 
     // max value for waiting create index interval, unit: millisecond
     public static final Long MAX_WAITING_INDEX_INTERVAL = 2000L;
-
-
-    // set this value for "withGuaranteeTimestamp" of QueryParam/SearchParam
-    // to instruct server execute query/search immediately.
-    public static final Long GUARANTEE_EVENTUALLY_TS = 1L;
-
-    // set this value for "withGuaranteeTimestamp" of QueryParam/SearchParam
-    // to instruct server execute query/search after all DML operations finished.
-    public static final Long GUARANTEE_STRONG_TS = 0L;
 }