Class MatchRegionRetriever.StoredFieldsVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.search.matchhighlight.MatchRegionRetriever.StoredFieldsVisitor
- All Implemented Interfaces:
Iterable<String>,MatchRegionRetriever.FieldValueProvider
- Enclosing class:
MatchRegionRetriever
private static class MatchRegionRetriever.StoredFieldsVisitor
extends StoredFieldVisitor
implements MatchRegionRetriever.FieldValueProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
StoredFieldVisitor.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoiddoubleField(FieldInfo fieldInfo, double value) Process a double numeric field.voidfloatField(FieldInfo fieldInfo, float value) Process a float numeric field.voidProcess a int numeric field.iterator()voidProcess a long numeric field.needsField(FieldInfo fieldInfo) Hook before processing a field.voidstringField(FieldInfo fieldInfo, String value) Process a string field.Methods inherited from class org.apache.lucene.index.StoredFieldVisitor
binaryField, binaryFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
needsField
-
fieldValues
-
-
Constructor Details
-
StoredFieldsVisitor
-
-
Method Details
-
needsField
Description copied from class:StoredFieldVisitorHook before processing a field. Before a field is processed, this method is invoked so that subclasses can return aStoredFieldVisitor.Statusrepresenting whether they need that particular field or not, or to stop processing entirely.- Specified by:
needsFieldin classStoredFieldVisitor- Throws:
IOException
-
getValues
- Specified by:
getValuesin interfaceMatchRegionRetriever.FieldValueProvider- Returns:
- Return a list of values for the provided field name or
nullif the field is not loaded or does not exist for the field.
-
stringField
Description copied from class:StoredFieldVisitorProcess a string field.- Overrides:
stringFieldin classStoredFieldVisitor- Throws:
IOException
-
intField
Description copied from class:StoredFieldVisitorProcess a int numeric field.- Overrides:
intFieldin classStoredFieldVisitor- Throws:
IOException
-
longField
Description copied from class:StoredFieldVisitorProcess a long numeric field.- Overrides:
longFieldin classStoredFieldVisitor- Throws:
IOException
-
floatField
Description copied from class:StoredFieldVisitorProcess a float numeric field.- Overrides:
floatFieldin classStoredFieldVisitor- Throws:
IOException
-
doubleField
Description copied from class:StoredFieldVisitorProcess a double numeric field.- Overrides:
doubleFieldin classStoredFieldVisitor- Throws:
IOException
-
addField
-
iterator
-