javanna commented on code in PR #12799:
URL: https://github.com/apache/lucene/pull/12799#discussion_r1400378967


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswVectorsFormat.java:
##########
@@ -160,12 +160,12 @@ public Lucene99HnswVectorsFormat(int maxConn, int 
beamWidth) {
    * @param maxConn the maximum number of connections to a node in the HNSW 
graph
    * @param beamWidth the size of the queue maintained during graph 
construction.
    * @param numMergeWorkers number of workers (threads) that will be used when 
doing merge. If
-   *     larger than 1, a non-null {@link ExecutorService} must be passed as 
mergeExec
-   * @param mergeExec the {@link ExecutorService} that will be used by ALL 
vector writers that are
+   *     larger than 1, a non-null {@link TaskExecutor} must be passed as 
mergeExec
+   * @param mergeExec the {@link TaskExecutor} that will be used by ALL vector 
writers that are
    *     generated by this format to do the merge
    */
   public Lucene99HnswVectorsFormat(
-      int maxConn, int beamWidth, int numMergeWorkers, ExecutorService 
mergeExec) {
+      int maxConn, int beamWidth, int numMergeWorkers, TaskExecutor mergeExec) 
{

Review Comment:
   I would have rather left ExecutorService as a constructor argument, but 
create a TaskExecutor out of it and hold a reference to it instead of the 
executor. Does that make sense to you? 



-- 
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