Class PhrasePositions


  • final class PhrasePositions
    extends java.lang.Object
    Position of a term in a document that takes into account the term offset within the phrase.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void firstPosition()  
      (package private) boolean nextPosition()
      Go to next location of this term current document, and set position as location - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the same position.
      java.lang.String toString()
      for debug purposes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • position

        int position
      • count

        int count
      • offset

        int offset
      • ord

        final int ord
      • rptGroup

        int rptGroup
      • rptInd

        int rptInd
      • terms

        final Term[] terms
    • Constructor Detail

      • PhrasePositions

        PhrasePositions​(PostingsEnum postings,
                        int o,
                        int ord,
                        Term[] terms)
    • Method Detail

      • firstPosition

        final void firstPosition()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • nextPosition

        final boolean nextPosition()
                            throws java.io.IOException
        Go to next location of this term current document, and set position as location - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the same position.
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        for debug purposes
        Overrides:
        toString in class java.lang.Object