Package org.apache.lucene.search
Class PhrasePositions
- java.lang.Object
-
- org.apache.lucene.search.PhrasePositions
-
final class PhrasePositions extends java.lang.ObjectPosition of a term in a document that takes into account the term offset within the phrase.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcount(package private) PhrasePositionsnext(package private) intoffset(package private) intord(package private) intposition(package private) PostingsEnumpostings(package private) intrptGroup(package private) intrptInd(package private) Term[]terms
-
Constructor Summary
Constructors Constructor Description PhrasePositions(PostingsEnum postings, int o, int ord, Term[] terms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidfirstPosition()(package private) booleannextPosition()Go to next location of this term current document, and setpositionaslocation - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the sameposition.java.lang.StringtoString()for debug purposes
-
-
-
Field Detail
-
position
int position
-
count
int count
-
offset
int offset
-
ord
final int ord
-
postings
final PostingsEnum postings
-
next
PhrasePositions next
-
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.IOExceptionGo to next location of this term current document, and setpositionaslocation - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the sameposition.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
for debug purposes- Overrides:
toStringin classjava.lang.Object
-
-