Skip to content

Make TaskExecutor public#12574

Merged
javanna merged 4 commits intoapache:mainfrom
javanna:enhancement/task_executor_public
Sep 20, 2023
Merged

Make TaskExecutor public#12574
javanna merged 4 commits intoapache:mainfrom
javanna:enhancement/task_executor_public

Conversation

@javanna
Copy link
Copy Markdown
Contributor

@javanna javanna commented Sep 20, 2023

TaskExecutor is currently package private. We have scenarios where we want to parallelize the execution and reuse it outside of its package, hence this commit makes it public (and experimental).

Note that its constructor remains package private as it is supposed to be created by the index searcher, and later retrieved from it via the appropriate getter, which is also made public as part of this commit.

This is a pre-requisite for #12183 .

TaskExecutor is currently package private. We have scenarios where we
want to parallelize the execution and reuse it outside of its package,
hence this commit makes it public.

Note that its constructor remains package private as it is supposed to
be created by the index searcher, and later retrieved from it via the
appropriate getter, which is also made public as part of this commit.
Copy link
Copy Markdown
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me, let's make it @lucene.experimental?

@javanna javanna merged commit 1cb0d81 into apache:main Sep 20, 2023
javanna added a commit that referenced this pull request Sep 20, 2023
TaskExecutor is currently package private. We have scenarios where we
want to parallelize the execution and reuse it outside of its package,
hence this commit makes it public (and experimental).

Note that its constructor remains package private as it is supposed to
be created by the index searcher, and later retrieved from it via the
appropriate getter, which is also made public as part of this commit.

Co-authored-by: gf2121 <[email protected]>
@javanna javanna added this to the 9.9.0 milestone Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants