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

    Modifier and Type Method Description
    Posting next()
    Obtains the next element in the posting list.

    Methods inherited from class es.uam.eps.ir.relison.content.index.structure.lucene.LucenePostingsIterator

    hasNext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining, remove
  • Field Details

    • positionPostings

      org.apache.lucene.index.PostingsEnum positionPostings
      Positional postings.
  • Constructor Details

    • LucenePositionalPostingsIterator

      public LucenePositionalPostingsIterator​(org.apache.lucene.index.PostingsEnum p1, org.apache.lucene.index.PostingsEnum p2) throws java.io.IOException
      Constructor.
      Parameters:
      p1 - posting list.
      p2 - positional posting list.
      Throws:
      java.io.IOException - if something fails while creating the iterator.
  • Method Details

    • next

      public Posting next()
      Obtains the next element in the posting list.
      Specified by:
      next in interface java.util.Iterator<Posting>
      Overrides:
      next in class LucenePostingsIterator
      Returns:
      the posting if everything is OK, null otherwise.