mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 20:15:18 +00:00
Fix compilation under Java 11.
This commit is contained in:
parent
c241ab006c
commit
278d0fc1f9
@ -75,7 +75,7 @@ import org.apache.lucene.util.OfflineSorter.BufferSize;
|
||||
* Directory targetDir = FSDirectory.open(targetPath);
|
||||
* BPIndexReorderer reorderer = new BPIndexReorderer();
|
||||
* ForkJoinPool pool = new ForkJoinPool(Runtime.getRuntime().availableProcessors(),
|
||||
* p -> new ForkJoinWorkerThread(p) {}, null, random().nextBoolean());
|
||||
* p -> new ForkJoinWorkerThread(p) {}, null, false);
|
||||
* reorderer.setForkJoinPool(pool);
|
||||
* reorderer.setFields(Collections.singleton("body"));
|
||||
* CodecReader reorderedReaderView = reorderer.reorder(SlowCodecReaderWrapper.wrap(reader), targetDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user