- java.lang.Object
-
- org.apache.lucene.search.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
count
(package private) PhrasePositions
next
(package private) int
offset
(package private) int
ord
(package private) int
position
(package private) PostingsEnum
postings
(package private) int
rptGroup
(package private) int
rptInd
(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) void
firstPosition()
(package private) boolean
nextPosition()
Go to next location of this term current document, and setposition
aslocation - offset
, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the sameposition
.java.lang.String
toString()
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.IOException
Go to next location of this term current document, and setposition
aslocation - 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:
toString
in classjava.lang.Object
-
-