Class LucenePositionalPostingsIterator
java.lang.Object
es.uam.eps.ir.relison.content.index.structure.lucene.LucenePostingsIterator
es.uam.eps.ir.relison.content.index.structure.positional.lucene.LucenePositionalPostingsIterator
- All Implemented Interfaces:
java.util.Iterator<Posting>
public class LucenePositionalPostingsIterator extends LucenePostingsIterator
Iterator for running over a Lucene positional posting list.
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.lucene.index.PostingsEnum
positionPostings
Positional postings.Fields inherited from class es.uam.eps.ir.relison.content.index.structure.lucene.LucenePostingsIterator
currentDoc, postings
-
Constructor Summary
Constructors Constructor Description LucenePositionalPostingsIterator(org.apache.lucene.index.PostingsEnum p1, org.apache.lucene.index.PostingsEnum p2)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.content.index.structure.lucene.LucenePostingsIterator
hasNext
-
Field Details
-
positionPostings
org.apache.lucene.index.PostingsEnum positionPostingsPositional postings.
-
-
Constructor Details
-
LucenePositionalPostingsIterator
public LucenePositionalPostingsIterator(org.apache.lucene.index.PostingsEnum p1, org.apache.lucene.index.PostingsEnum p2) throws java.io.IOExceptionConstructor.- Parameters:
p1
- posting list.p2
- positional posting list.- Throws:
java.io.IOException
- if something fails while creating the iterator.
-
-
Method Details
-
next
Obtains the next element in the posting list.- Specified by:
next
in interfacejava.util.Iterator<Posting>
- Overrides:
next
in classLucenePostingsIterator
- Returns:
- the posting if everything is OK, null otherwise.
-