Class FieldHitCollector

java.lang.Object
org.apache.lucene.search.SimpleCollector
com.atlassian.jira.lucene.internal.issue.statistics.util.FieldDocumentHitCollector
com.atlassian.jira.issue.statistics.util.FieldHitCollector
All Implemented Interfaces:
org.apache.lucene.search.Collector, org.apache.lucene.search.LeafCollector

@Deprecated(since="10.7", forRemoval=true) public class FieldHitCollector extends FieldDocumentHitCollector
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collect(org.apache.lucene.document.Document d)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Set<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method should cache up the FieldSelector, such that overhead will be as small as possible when this method is called from the FieldDocumentHitCollector.collect(int) method.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class com.atlassian.jira.lucene.internal.issue.statistics.util.FieldDocumentHitCollector

    collect, doSetNextReader, needsScores

    Methods inherited from class org.apache.lucene.search.SimpleCollector

    getLeafCollector, setScorer

    Methods inherited from class java.lang.Object

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

    • FieldHitCollector

      public FieldHitCollector(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • collect

      public void collect(org.apache.lucene.document.Document d)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      collect in class FieldDocumentHitCollector
    • getValues

      public List<String> getValues()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getFieldsToLoad

      protected Set<String> getFieldsToLoad()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: FieldDocumentHitCollector
      This method should cache up the FieldSelector, such that overhead will be as small as possible when this method is called from the FieldDocumentHitCollector.collect(int) method.
      Specified by:
      getFieldsToLoad in class FieldDocumentHitCollector
      Returns:
      a Set of fields to load