Class LucenePostingsList
java.lang.Object
es.uam.eps.ir.relison.content.index.structure.lucene.LucenePostingsList
- All Implemented Interfaces:
PostingsList
,java.lang.Iterable<Posting>
- Direct Known Subclasses:
LucenePositionalPostingsList
public class LucenePostingsList extends java.lang.Object implements PostingsList
Lucene posting list.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LucenePostingsList(org.apache.lucene.index.PostingsEnum postings, int length)
Constructor. -
Method Summary
-
Field Details
-
Constructor Details
-
LucenePostingsList
public LucenePostingsList(org.apache.lucene.index.PostingsEnum postings, int length)Constructor.- Parameters:
postings
- the posting list.length
- the length of the posting list
-
-
Method Details
-
iterator
Iterator for the list.- Specified by:
iterator
in interfacejava.lang.Iterable<Posting>
- Returns:
- the iterator if everything is OK, null otherwise.
-
size
public int size()Obtains the length of the list.- Specified by:
size
in interfacePostingsList
- Returns:
- the length of the posting list.
-