LUCENE-10575: Fix some visibility issues (#894)

This commit is contained in:
Alan Woodward 2022-05-16 14:25:36 +01:00 committed by GitHub
parent de8a6998d7
commit 8921b23bcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

View File

@ -34,7 +34,7 @@ import org.apache.lucene.util.BytesRef;
*
* @lucene.experimental
*/
public class STMergingTermsEnum extends TermsEnum {
class STMergingTermsEnum extends TermsEnum {
protected final String fieldName;
protected final MultiSegmentsPostingsEnum multiPostingsEnum;

View File

@ -70,10 +70,10 @@ public class MatchRegionRetriever {
}
/**
* An abstraction that provides document values for a given field. Default implementation in
* {@link DocumentFieldValueProvider} just reaches to a preloaded {@link Document}. It is possible
* to write a more efficient implementation on top of a reusable character buffer (that reuses the
* buffer while retrieving hit regions for documents).
* An abstraction that provides document values for a given field. The default implementation just
* reaches to a preloaded {@link Document}. It is possible to write a more efficient
* implementation on top of a reusable character buffer (that reuses the buffer while retrieving
* hit regions for documents).
*/
@FunctionalInterface
public interface FieldValueProvider {

View File

@ -118,11 +118,10 @@ public class ExternalRefSorter implements BytesRefSorter, Closeable {
/**
* Iterates over {@link BytesRef}s in a file, closes the reader when the iterator is exhausted.
*/
static class ByteSequenceIterator implements BytesRefIterator, Closeable {
public static class ByteSequenceIterator implements BytesRefIterator, Closeable {
private final OfflineSorter.ByteSequencesReader reader;
private BytesRef scratch;
public ByteSequenceIterator(OfflineSorter.ByteSequencesReader reader) {
private ByteSequenceIterator(OfflineSorter.ByteSequencesReader reader) {
this.reader = reader;
}
@ -130,7 +129,7 @@ public class ExternalRefSorter implements BytesRefSorter, Closeable {
public BytesRef next() throws IOException {
boolean success = false;
try {
scratch = reader.next();
BytesRef scratch = reader.next();
if (scratch == null) {
close();
}