-
Notifications
You must be signed in to change notification settings - Fork 109
[Java] Exposing merge API for multiple CAGRA indices #891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Java] Exposing merge API for multiple CAGRA indices #891
Conversation
#860 is merged now, will rebase my branch with branch-25.06 and update this pull request. |
0afbed8
to
7cac5d2
Compare
…ve whitespace and formatting issues
java/cuvs-java/src/main/java/com/nvidia/cuvs/CagraMergeParams.java
Outdated
Show resolved
Hide resolved
java/cuvs-java/src/main/java/com/nvidia/cuvs/CagraMergeParams.java
Outdated
Show resolved
Hide resolved
java/cuvs-java/src/test/java/com/nvidia/cuvs/CagraBuildAndSearchIT.java
Outdated
Show resolved
Hide resolved
java/cuvs-java/src/test/java/com/nvidia/cuvs/CagraBuildAndSearchIT.java
Outdated
Show resolved
Hide resolved
-Added description for function merge_cagra_indexes -passing parameters instead of builder instance for consistency -Initialized outputIndexParams in builder class of CagraMegeParams -Added license header in CagramergeParams -Commented out Logical Merge test as it is not yet implemented in C -Using File and InputStream instead of java.io.File
@@ -433,6 +455,48 @@ private MemorySegment segmentFromIndexParams(CagraIndexParams params) { | |||
return seg; | |||
} | |||
|
|||
private static MemorySegment segmentFromIndexParams(CagraIndexParams params, CuVSResourcesImpl resources) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is almost identical (except for being static) to the one above. Should be just one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, please review.
/ok to test e682d01 |
@narangvivek10 I incorporated your review feedback on behalf of @punAhuja. |
/ok to test 6b65b70 |
Java tests passed here :-) I think this is ready for merge now. |
CagraIndex physicalMergedIndex = CagraIndex.merge(new CagraIndex[]{index1, index2}, physicalMergeParams); | ||
log.info("Physical merge completed successfully"); | ||
|
||
// CagraMergeParams logicalMergeParams = new CagraMergeParams.Builder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't leave commented out code in here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
@cjnolet fixed the uncommented code, and also added more repetitions to the randomized cagra test (to catch bugs, if any). It is a good to have test fix regardless of this feature. If you have any objections, I can revert that change. If it looks good, please trigger another CI and merge. Thanks! |
@cjnolet Can you please review and merge this? |
@narangvivek10 @chatman please allow CI to fail the |
/ok to test 3a749e9 |
/ok to test 6f855d4 |
/merge |
Exposing the C merge API in the Java layer. This is work in progress. Pull request for merge API in C is not merged yet: rapidsai#860 Authors: - https://github.com/punAhuja - Vivek Narang (https://github.com/narangvivek10) Approvers: - Ishan Chattopadhyaya (https://github.com/chatman) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#891
Exposing the C merge API in the Java layer.
This is work in progress.
Pull request for merge API in C is not merged yet:
#860