Class LimitedStoredFieldVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.document.DocumentStoredFieldVisitor
com.atlassian.greenhopper.util.lucene.LimitedStoredFieldVisitor
public class LimitedStoredFieldVisitor
extends org.apache.lucene.document.DocumentStoredFieldVisitor
Field selector to restrict the amount of information that's extracted from Lucene. In addition to any fields specified by the callback, we also
fetch issueId and issueKey.
This class is executed many times in the most inside lucene loop for collecting documents it must be performant as hell.
- Author:
- ahennecke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.index.StoredFieldVisitor.Status
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.StoredFieldVisitor.Status
needsField
(org.apache.lucene.index.FieldInfo fieldInfo) Methods inherited from class org.apache.lucene.document.DocumentStoredFieldVisitor
binaryField, doubleField, floatField, getDocument, intField, longField, stringField
-
Field Details
-
loaded
protected int loaded -
lastField
-
-
Constructor Details
-
LimitedStoredFieldVisitor
-
-
Method Details
-
needsField
public org.apache.lucene.index.StoredFieldVisitor.Status needsField(org.apache.lucene.index.FieldInfo fieldInfo) throws IOException - Overrides:
needsField
in classorg.apache.lucene.document.DocumentStoredFieldVisitor
- Throws:
IOException
-