final class PhrasePositions
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
PhrasePositions(PostingsEnum postings,
int o,
int ord,
Term[] terms) |
Modifier and Type | Method and 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
|
int position
int count
int offset
final int ord
final PostingsEnum postings
PhrasePositions next
int rptGroup
int rptInd
final Term[] terms
PhrasePositions(PostingsEnum postings, int o, int ord, Term[] terms)
final void firstPosition() throws java.io.IOException
java.io.IOException
final boolean nextPosition() throws java.io.IOException
position
as location - offset
, so that a
matching exact phrase is easily identified when all PhrasePositions
have exactly the same position
.java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object