Class MatchRegionRetriever.DocumentFieldValueProvider
- java.lang.Object
-
- org.apache.lucene.search.matchhighlight.MatchRegionRetriever.DocumentFieldValueProvider
-
- All Implemented Interfaces:
MatchRegionRetriever.FieldValueProvider
- Enclosing class:
- MatchRegionRetriever
private static final class MatchRegionRetriever.DocumentFieldValueProvider extends java.lang.Object implements MatchRegionRetriever.FieldValueProvider
ImplementsMatchRegionRetriever.FieldValueProvider
wrapping a preloadedDocument
.
-
-
Field Summary
Fields Modifier and Type Field Description private Document
doc
private IOSupplier<Document>
docSupplier
-
Constructor Summary
Constructors Constructor Description DocumentFieldValueProvider(LeafReaderContext currentContext, int docId, java.util.Set<java.lang.String> preloadFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.CharSequence>
getValues(java.lang.String field)
-
-
-
Field Detail
-
docSupplier
private final IOSupplier<Document> docSupplier
-
doc
private Document doc
-
-
Constructor Detail
-
DocumentFieldValueProvider
public DocumentFieldValueProvider(LeafReaderContext currentContext, int docId, java.util.Set<java.lang.String> preloadFields)
-
-
Method Detail
-
getValues
public java.util.List<java.lang.CharSequence> getValues(java.lang.String field) throws java.io.IOException
- Specified by:
getValues
in interfaceMatchRegionRetriever.FieldValueProvider
- Throws:
java.io.IOException
-
-