uschindler commented on code in PR #14131:
URL: https://github.com/apache/lucene/pull/14131#discussion_r1922703919


##########
lucene/sandbox/src/java/module-info.java:
##########
@@ -20,6 +20,9 @@
   requires org.apache.lucene.core;
   requires org.apache.lucene.queries;
   requires org.apache.lucene.facet;
+  requires java.logging;
+  requires com.nvidia.cuvs;

Review Comment:
   When looking at the code I think best wozuld be the following: Create a 
small static "holder" class (inside the Codec impl) which has a static 
initializer loading and setting up the CUVS code. This should fail hard with 
some LinkageError if library is not there. The holder class should have getters 
for some CUVS entry points.
   
   All getter methods to create formats and readers in the Codec delegate to 
the getters in the holder and pass through any exceptions. In addition, all 
CUVS classes should be package private (I mentioned this already) and only let 
the codec and a essential config classes public.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to