Class LuceneFreqVectorIterator
java.lang.Object
es.uam.eps.ir.relison.content.index.freq.lucene.LuceneFreqVectorIterator
- All Implemented Interfaces:
java.util.Iterator<TermFreq>
public class LuceneFreqVectorIterator extends java.lang.Object implements java.util.Iterator<TermFreq>
Iterator for the Lucene frequency vector
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LuceneFreqVectorIterator(org.apache.lucene.index.Terms t)
Constructor -
Method Summary
-
Field Details
-
Constructor Details
-
LuceneFreqVectorIterator
public LuceneFreqVectorIterator(org.apache.lucene.index.Terms t) throws java.io.IOExceptionConstructor- Parameters:
t
- terms- Throws:
java.io.IOException
- if something goes wrong
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfacejava.util.Iterator<TermFreq>
-
next
- Specified by:
next
in interfacejava.util.Iterator<TermFreq>
-
getFreq
public long getFreq(java.lang.String term) throws java.io.IOExceptionGiven a term, obtains its frequency in the current position.- Parameters:
term
- the term.- Returns:
- the frequency in the position.
- Throws:
java.io.IOException
- if something fails while retrieving the frequency vector.
-