Class CachingTermPositions

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.PostingsEnum
org.alfresco.solr.query.CachingTermPositions

public class CachingTermPositions extends org.apache.lucene.index.PostingsEnum
Author:
andyh TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
  • Field Summary

    Fields inherited from class org.apache.lucene.index.PostingsEnum

    ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONS

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachingTermPositions(org.apache.lucene.index.PostingsEnum delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    advance(int target)
     
    org.apache.lucene.util.AttributeSource
     
    long
     
    int
     
    int
     
    boolean
     
    int
     
    org.apache.lucene.util.BytesRef
     
    int
     
    int
     
    int
     
    void
     
    int
     
     

    Methods inherited from class org.apache.lucene.index.PostingsEnum

    featureRequested

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

    all, empty, slowAdvance

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CachingTermPositions

      public CachingTermPositions(org.apache.lucene.index.PostingsEnum delegate)
  • Method Details

    • nextPosition

      public int nextPosition() throws IOException
      Specified by:
      nextPosition in class org.apache.lucene.index.PostingsEnum
      Throws:
      IOException
    • reset

      public void reset()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      int
      See Also:
    • freq

      public int freq() throws IOException
      Specified by:
      freq in class org.apache.lucene.index.PostingsEnum
      Returns:
      int
      Throws:
      IOException
      See Also:
      • org.apache.lucene.index.DocsEnum#freq()
    • startOffset

      public int startOffset() throws IOException
      Specified by:
      startOffset in class org.apache.lucene.index.PostingsEnum
      Returns:
      int
      Throws:
      IOException
      See Also:
      • org.apache.lucene.index.DocsAndPositionsEnum#startOffset()
    • endOffset

      public int endOffset() throws IOException
      Specified by:
      endOffset in class org.apache.lucene.index.PostingsEnum
      Returns:
      int
      Throws:
      IOException
      See Also:
      • org.apache.lucene.index.DocsAndPositionsEnum#endOffset()
    • docID

      public int docID()
      Specified by:
      docID in class org.apache.lucene.search.DocIdSetIterator
      Returns:
      int
      See Also:
      • DocIdSetIterator.docID()
    • getPayload

      public org.apache.lucene.util.BytesRef getPayload() throws IOException
      Specified by:
      getPayload in class org.apache.lucene.index.PostingsEnum
      Returns:
      BytesRef
      Throws:
      IOException
      See Also:
      • org.apache.lucene.index.DocsAndPositionsEnum#getPayload()
    • attributes

      public org.apache.lucene.util.AttributeSource attributes()
      Overrides:
      attributes in class org.apache.lucene.index.PostingsEnum
      Returns:
      AttributeSource
      See Also:
      • org.apache.lucene.index.DocsEnum#attributes()
    • nextDoc

      public int nextDoc() throws IOException
      Specified by:
      nextDoc in class org.apache.lucene.search.DocIdSetIterator
      Returns:
      int
      Throws:
      IOException
      See Also:
      • DocIdSetIterator.nextDoc()
    • advance

      public int advance(int target) throws IOException
      Specified by:
      advance in class org.apache.lucene.search.DocIdSetIterator
      Parameters:
      target - int
      Returns:
      int
      Throws:
      IOException
      See Also:
      • DocIdSetIterator.advance(int)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj - Object
      Returns:
      boolean
      See Also:
    • cost

      public long cost()
      Specified by:
      cost in class org.apache.lucene.search.DocIdSetIterator
      Returns:
      long
      See Also:
      • DocIdSetIterator.cost()
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      String
      See Also: