forked from opensearch-project/k-NN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move common constants to Remote constants class, simplify RemoteBuild…
…Request using serialization logic (XContent) Signed-off-by: owenhalpert <ohalpert@gmail.com>
- Loading branch information
1 parent
1cee707
commit 82a50cb
Showing
13 changed files
with
224 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
src/main/java/org/opensearch/knn/index/remote/HTTPRemoteBuildRequest.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/main/java/org/opensearch/knn/index/remote/KNNRemoteConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.knn.index.remote; | ||
|
||
// Public class to define the constants used by Remote Index Build in 2 or more classes. | ||
public class KNNRemoteConstants { | ||
// Repository filepath constants | ||
public static final String VECTOR_BLOB_FILE_EXTENSION = ".knnvec"; | ||
public static final String DOC_ID_FILE_EXTENSION = ".knndid"; | ||
public static final String VECTORS_PATH = "_vectors"; | ||
|
||
// Repository-S3 | ||
public static final String S3 = "s3"; | ||
public static final String BUCKET = "bucket"; | ||
|
||
// Build request keys | ||
public static final String ALGORITHM = "algorithm"; | ||
public static final String ALGORITHM_PARAMETERS = "algorithm_parameters"; | ||
public static final String INDEX_PARAMETERS = "index_parameters"; | ||
|
||
// HTTP implementation | ||
public static final String BUILD_ENDPOINT = "/_build"; | ||
public static final String STATUS_ENDPOINT = "/_status"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 0 additions & 65 deletions
65
src/main/java/org/opensearch/knn/index/remote/RemoteBuildRequestBuilder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.