mirror of https://github.com/apache/lucene.git
Fix compilation under Java 11.
This commit is contained in:
parent
36432fa672
commit
1d0edd76a5
|
@ -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…
Reference in New Issue