Package org.terrier.realtime.multi
Class MultiInverted
- java.lang.Object
-
- org.terrier.realtime.multi.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
-
-
Constructor Summary
Constructors Constructor Description MultiInverted(PostingIndex<Pointer>[] postings, int[] offsets, boolean blocks)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Not implemented.IterablePostinggetPostings(Pointer _multiPointer)Returns the posting iterator given a pointer.
-
-
-
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:
getPostingsin interfacePostingIndex<Pointer>- Returns:
- the posting iterator given a pointer.
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionNot implemented.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-