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
    Modifier and Type
    Field
    Description
    protected String
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • loaded

      protected int loaded
    • lastField

      protected String lastField
  • Constructor Details

    • LimitedStoredFieldVisitor

      public LimitedStoredFieldVisitor(Set<String> fieldNames)
  • Method Details

    • needsField

      public org.apache.lucene.index.StoredFieldVisitor.Status needsField(org.apache.lucene.index.FieldInfo fieldInfo) throws IOException
      Overrides:
      needsField in class org.apache.lucene.document.DocumentStoredFieldVisitor
      Throws:
      IOException