mirror of https://github.com/apache/lucene.git
LUCENE-10575: Fix some visibility issues (#894)
This commit is contained in:
parent
de8a6998d7
commit
8921b23bcd
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue