Class MultiInverted

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, PostingIndex<Pointer>

    public class MultiInverted
    extends java.lang.Object
    implements PostingIndex<Pointer>
    An inverted file implementation for a MultIndex. It wraps around multiple inverted files from the shards in the MultiIndex.
    Since:
    4.0
    Author:
    Richard McCreadie, Stuart Mackie
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Not implemented.
      IterablePosting getPostings​(Pointer _multiPointer)
      Returns the posting iterator given a pointer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiInverted

        public MultiInverted​(PostingIndex<Pointer>[] postings,
                             int[] offsets,
                             boolean blocks)
        Constructor.
    • Method Detail

      • getPostings

        public IterablePosting getPostings​(Pointer _multiPointer)
                                    throws java.io.IOException
        Returns the posting iterator given a pointer.
        Specified by:
        getPostings in interface PostingIndex<Pointer>
        Returns:
        the posting iterator given a pointer.
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Not implemented.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException