public static interface IntDocVector.Reader
IntDocVector
, providing access
to terms, their frequencies, and positions.Modifier and Type | Method and Description |
---|---|
int |
getNumberOfTerms()
Returns the total number of terms in this document.
|
int[] |
getPositions()
Returns the position offsets of the current term as an array.
|
boolean |
getPositions(TermPositions tp)
Returns the position offsets of the current term as a
TermPositions object. |
short |
getTf()
Returns the term frequency of the current term.
|
boolean |
hasMoreTerms()
Returns
true if there are more terms to read. |
int |
nextTerm()
Returns the next term.
|
void |
reset()
Resets the reader to the beginning of the document.
|
int getNumberOfTerms()
int[] getPositions()
boolean getPositions(TermPositions tp)
TermPositions
object.TermPositions
representing offsets of the current term.short getTf()
boolean hasMoreTerms()
true
if there are more terms to read.true
if there are more terms to readint nextTerm()
void reset()